Pass zap disk to prepare command if need be

This commit is contained in:
James Page 2014-07-15 10:42:36 +01:00
parent 344722fe06
commit 2cd3e13b5a
1 changed files with 2 additions and 0 deletions

View File

@ -351,6 +351,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)