Pass zap disk to prepare command if need be

This commit is contained in:
james.page@ubuntu.com 2014-07-15 10:42:36 +01:00
parent c68cb66249
commit fd6ae51a5d
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)