diff --git a/lib/ansible/modules/cloud/amazon/aws_acm_facts.py b/lib/ansible/modules/cloud/amazon/aws_acm_facts.py index c79bf230d62..0ad2244824a 100644 --- a/lib/ansible/modules/cloud/amazon/aws_acm_facts.py +++ b/lib/ansible/modules/cloud/amazon/aws_acm_facts.py @@ -313,7 +313,7 @@ def main(): module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) if not HAS_BOTO3: - module.fail_json('boto3 and botocore are required by this module') + module.fail_json(msg='boto3 and botocore are required by this module') region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module, boto3=True) client = boto3_conn(module, conn_type='client', resource='acm', diff --git a/lib/ansible/modules/cloud/cloudstack/cs_host.py b/lib/ansible/modules/cloud/cloudstack/cs_host.py index 078356b487c..41d38248a8d 100644 --- a/lib/ansible/modules/cloud/cloudstack/cs_host.py +++ b/lib/ansible/modules/cloud/cloudstack/cs_host.py @@ -577,7 +577,7 @@ class AnsibleCloudStackHost(AnsibleCloudStack): return None elif host['resourcestate'] != 'PrepareForMaintenance': return host - self.fail_json("Polling for maintenance timed out") + self.fail_json(msg="Polling for maintenance timed out") def get_result(self, host): super(AnsibleCloudStackHost, self).get_result(host) diff --git a/lib/ansible/modules/network/junos/junos_package.py b/lib/ansible/modules/network/junos/junos_package.py index 56ad185cbf5..daead2d90bd 100644 --- a/lib/ansible/modules/network/junos/junos_package.py +++ b/lib/ansible/modules/network/junos/junos_package.py @@ -136,7 +136,7 @@ def connect(module): device.timeout = get_param(module, 'timeout') or 10 except ConnectError: exc = get_exception() - module.fail_json('unable to connect to %s: %s' % (host, str(exc))) + module.fail_json(msg='unable to connect to %s: %s' % (host, str(exc))) return device