reference instance_id in docs, fixes for calls to fail_json

This commit is contained in:
Charles Paul 2015-10-12 08:35:21 -05:00
parent 561d768f44
commit 51bb65c9a3
3 changed files with 8 additions and 13 deletions

View file

@ -42,9 +42,9 @@ options:
- The org to login to for creating vapp, mostly set when the service_type is vdc. - The org to login to for creating vapp, mostly set when the service_type is vdc.
required: false required: false
default: None default: None
service_id: instance_id:
description: description:
- The service id in a vchs environment to be used for creating the vapp - The instance id in a vchs environment to be used for creating the vapp
required: false required: false
default: None default: None
host: host:
@ -242,7 +242,7 @@ def main():
try: try:
desired_rules = validate_fw_rules(fw_rules) desired_rules = validate_fw_rules(fw_rules)
except VcaError, e: except VcaError, e:
module.fail_json(e.message) module.fail_json(msg=e.message)
result = dict(changed=False) result = dict(changed=False)
result['current_rules'] = current_rules result['current_rules'] = current_rules

View file

@ -42,9 +42,9 @@ options:
- The org to login to for creating vapp, mostly set when the service_type is vdc. - The org to login to for creating vapp, mostly set when the service_type is vdc.
required: false required: false
default: None default: None
service_id: instance_id:
description: description:
- The service id in a vchs environment to be used for creating the vapp - The instance id in a vchs environment to be used for creating the vapp
required: false required: false
default: None default: None
host: host:
@ -200,7 +200,7 @@ def main():
purge_rules = module.params['purge_rules'] purge_rules = module.params['purge_rules']
if not purge_rules and not nat_rules: if not purge_rules and not nat_rules:
module.fail_json('Must define purge_rules or nat_rules') module.fail_json(msg='Must define purge_rules or nat_rules')
vca = vca_login(module) vca = vca_login(module)

View file

@ -104,15 +104,10 @@ options:
- The org to login to for creating vapp, mostly set when the service_type is vdc. - The org to login to for creating vapp, mostly set when the service_type is vdc.
required: false required: false
default: None default: None
service_id:
description:
- The service id in a vchs environment to be used for creating the vapp
required: false
default: None
instance_id: instance_id:
description: description:
- The vCloud Air instance ID - The instance id in a vchs environment to be used for creating the vapp
required: no required: false
default: None default: None
host: host:
description: description: