Tidy
This commit is contained in:
parent
d3d4eda786
commit
e88bd03583
|
@ -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])
|
||||
|
||||
|
||||
|
|
|
@ -148,6 +148,7 @@ def get_devices():
|
|||
else:
|
||||
return []
|
||||
|
||||
|
||||
@hooks.hook('mon-relation-changed',
|
||||
'mon-relation-departed')
|
||||
def mon_relation():
|
||||
|
|
Loading…
Reference in New Issue