Update root_volume variable

pull/18777/head
Alberto Gireud 9 years ago committed by Matt Clay
parent dafb39da2e
commit 58c39f47c1

@ -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