removing isdir

This commit is contained in:
yolanda.robla@canonical.com
2014-02-12 14:22:49 +01:00
parent 4c256f7b86
commit d33de1a3a4

View File

@@ -160,10 +160,8 @@ def register_configs():
# need to create this early, new peers will have a relation during
# registration # before they've run the ceph hooks to create the
# directory.
if not os.path.isdir(os.path.dirname(CEPH_CONF)):
mkdir(os.path.dirname(CEPH_CONF))
if not os.path.isdir(os.path.dirname(ceph_config_file())):
mkdir(os.path.dirname(ceph_config_file()))
mkdir(os.path.dirname(CEPH_CONF))
mkdir(os.path.dirname(ceph_config_file()))
# Install ceph config as an alternative for co-location with
# ceph and ceph-osd charm - cinder ceph.conf will be