Update root_volume variable

reviewable/pr18780/r1
Alberto Gireud 9 years ago
parent 16a3bdaa7d
commit 9cc67e45a6

@ -571,14 +571,14 @@ def main():
state = module.params['state'] state = module.params['state']
image = module.params['image'] image = module.params['image']
root_volume = module.params['root_volume'] boot_volume = module.params['boot_volume']
flavor = module.params['flavor'] flavor = module.params['flavor']
flavor_ram = module.params['flavor_ram'] flavor_ram = module.params['flavor_ram']
if state == 'present': if state == 'present':
if not (image or root_volume): if not (image or boot_volume):
module.fail_json( module.fail_json(
msg="Parameter 'image' or 'root_volume' is required " msg="Parameter 'image' or 'boot_volume' is required "
"if state == 'present'" "if state == 'present'"
) )
if not flavor and not flavor_ram: if not flavor and not flavor_ram:

Loading…
Cancel
Save