From 036d41c0b219b87be010b51769bdce8267109190 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 30 Nov 2006 20:18:29 -0700 Subject: [PATCH] fix up StorageServer so that unit tests will run again --- allmydata/client.py | 1 - allmydata/storageserver.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.45.2