From 3d533cb423fef10aa0a35a39d18e8960d53c074c Mon Sep 17 00:00:00 2001 From: Charles Paul Date: Mon, 12 Oct 2015 08:50:18 -0500 Subject: [PATCH] fixing calls to fail_json --- lib/ansible/module_utils/vca.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/module_utils/vca.py b/lib/ansible/module_utils/vca.py index bc5e1aba2ad..fbaf3304172 100644 --- a/lib/ansible/module_utils/vca.py +++ b/lib/ansible/module_utils/vca.py @@ -196,26 +196,26 @@ VCHS_REQ_ARGS = ['service_id'] def _validate_module(module): if not HAS_PYVCLOUD: - module.fail_json("python module pyvcloud is needed for this module") + module.fail_json(msg="python module pyvcloud is needed for this module") service_type = module.params.get('service_type', DEFAULT_SERVICE_TYPE) if service_type == 'vca': for arg in VCA_REQ_ARGS: if module.params.get(arg) is None: - module.fail_json("argument %s is mandatory when service type " + module.fail_json(msg="argument %s is mandatory when service type " "is vca" % arg) if service_type == 'vchs': for arg in VCHS_REQ_ARGS: if module.params.get(arg) is None: - module.fail_json("argument %s is mandatory when service type " + module.fail_json(msg="argument %s is mandatory when service type " "is vchs" % arg) if service_type == 'vcd': for arg in VCD_REQ_ARGS: if module.params.get(arg) is None: - module.fail_json("argument %s is mandatory when service type " + module.fail_json(msg="argument %s is mandatory when service type " "is vcd" % arg)