Pass zap disk to prepare command if need be

This commit is contained in:
James Page 2014-07-15 10:41:35 +01:00
parent 7890a73e07
commit ca61077559
1 changed files with 2 additions and 0 deletions

View File

@ -364,6 +364,8 @@ def osdize_dev(dev, osd_format, osd_journal, reformat_osd=False):
if osd_format:
cmd.append('--fs-type')
cmd.append(osd_format)
if reformat_osd:
cmd.append('--zap-disk')
cmd.append(dev)
if osd_journal and os.path.exists(osd_journal):
cmd.append(osd_journal)