Pass the mirrorlog option as two arguments.

We don't use shell=True when we Popen, so we have to keep all
arguments as separate values.

Change-Id: Ic35fad36be72386d3496920e259c32fe16625046
Closes-bug: 1298017
This commit is contained in:
Vishvananda Ishaya 2014-03-26 12:09:28 -07:00
parent 532e99589b
commit 6868c7adb3

View File

@ -461,7 +461,7 @@ class LVM(executor.Executor):
if mirror_count > 0:
cmd.extend(['-m', mirror_count, '--nosync',
'--mirrorlog mirrored'])
'--mirrorlog', 'mirrored'])
terras = int(size_str[:-1]) / 1024.0
if terras >= 1.5:
rsize = int(2 ** math.ceil(math.log(terras) / math.log(2)))