This commit is contained in:
James Page 2013-08-27 14:42:48 +01:00
parent d3d4eda786
commit e88bd03583
2 changed files with 2 additions and 2 deletions

View File

@ -128,8 +128,7 @@ def start_osds(devices):
if get_ceph_version() >= "0.56.6":
# Use ceph-disk-activate for directory based OSD's
for dev_or_path in devices:
if (os.path.exists(dev_or_path) and
os.path.isdir(dev_or_path)):
if os.path.exists(dev_or_path) and os.path.isdir(dev_or_path):
subprocess.check_call(['ceph-disk-activate', dev_or_path])

View File

@ -148,6 +148,7 @@ def get_devices():
else:
return []
@hooks.hook('mon-relation-changed',
'mon-relation-departed')
def mon_relation():