]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fix up StorageServer so that unit tests will run again
authorBrian Warner <warner@lothar.com>
Fri, 1 Dec 2006 03:18:29 +0000 (20:18 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 1 Dec 2006 03:18:29 +0000 (20:18 -0700)
allmydata/client.py
allmydata/storageserver.py

index 85426f68a9b9f73c6e9ed79c5e602fec7e4b3f73..9838df41cdb2f2c1be36ef79d593f9b827055e67 100644 (file)
@@ -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):
index 4f1a208b6606c022498df8e86ff499c08fcf6973..34e467c4905b5bc1745361977ef1356f2d405fbb 100644 (file)
@@ -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)