From: Brian Warner Date: Fri, 1 Dec 2006 03:18:29 +0000 (-0700) Subject: fix up StorageServer so that unit tests will run again X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~516 X-Git-Url: https://git.rkrishnan.org/provisioning?a=commitdiff_plain;h=036d41c0b219b87be010b51769bdce8267109190;p=tahoe-lafs%2Ftahoe-lafs.git fix up StorageServer so that unit tests will run again --- diff --git a/allmydata/client.py b/allmydata/client.py index 85426f68..9838df41 100644 --- a/allmydata/client.py +++ b/allmydata/client.py @@ -13,7 +13,6 @@ from allmydata.storageserver import StorageServer class Client(service.MultiService, Referenceable): CERTFILE = "client.pem" - AUTHKEYSFILE = "authorized_keys" STOREDIR = 'storage' def __init__(self, queen_pburl): diff --git a/allmydata/storageserver.py b/allmydata/storageserver.py index 4f1a208b..34e467c4 100644 --- a/allmydata/storageserver.py +++ b/allmydata/storageserver.py @@ -15,7 +15,8 @@ class StorageServer(service.MultiService, Referenceable): name = 'storageserver' def __init__(self, store_dir): - precondition(os.path.isdir(store_dir)) + if not os.path.isdir(store_dir): + os.mkdir(store_dir) service.MultiService.__init__(self) self._bucketstore = BucketStore(store_dir) self._bucketstore.setServiceParent(self)