Only directly zap the disk for older ceph versions

This commit is contained in:
James Page
2014-07-28 15:50:47 +01:00
parent ca5b7b09c2
commit ee722f7035

View File

@@ -346,9 +346,8 @@ def osdize_dev(dev, osd_format, osd_journal, reformat_osd=False):
# Just provide the device - no other options
# for older versions of ceph
cmd.append(dev)
if reformat_osd:
zap_disk(dev)
if reformat_osd:
zap_disk(dev)
subprocess.check_call(cmd)