diff --git a/plugins/module_utils/iam.py b/plugins/module_utils/iam.py index 1500cf611b8..6441267d1c8 100644 --- a/plugins/module_utils/iam.py +++ b/plugins/module_utils/iam.py @@ -98,7 +98,7 @@ def convert_managed_policy_names_to_arns(client, policy_names): try: return [allpolicies[policy] for policy in policy_names if policy is not None] except KeyError as e: - raise AnsibleIAMError(message="Failed to find policy by name:" +str(e)) + raise AnsibleIAMError(message="Failed to find policy by name:" + str(e)) def get_aws_account_id(module):