Removed conditional assignment of yesopt to make it work with python-2.4 (to pass the Travis-CI test)
This commit is contained in:
parent
69c0a6360b
commit
f6dee55ee8
1 changed files with 4 additions and 1 deletions
|
@ -125,7 +125,10 @@ def main():
|
||||||
if version_found == None:
|
if version_found == None:
|
||||||
module.fail_json(msg="Failed to get LVM version number")
|
module.fail_json(msg="Failed to get LVM version number")
|
||||||
version_yesopt = mkversion(2, 2, 99) # First LVM with the "--yes" option
|
version_yesopt = mkversion(2, 2, 99) # First LVM with the "--yes" option
|
||||||
yesopt = "--yes" if version_found >= version_yesopt else ""
|
if version_found >= version_yesopt:
|
||||||
|
yesopt = "--yes"
|
||||||
|
else:
|
||||||
|
yesopt = ""
|
||||||
|
|
||||||
vg = module.params['vg']
|
vg = module.params['vg']
|
||||||
lv = module.params['lv']
|
lv = module.params['lv']
|
||||||
|
|
Loading…
Reference in a new issue