Only directly zap the disk for older ceph versions

This commit is contained in:
james.page@ubuntu.com 2014-07-28 15:50:47 +01:00
parent cf62f8a88b
commit 1c5aa24fe6
1 changed files with 2 additions and 3 deletions

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)