Fixed error message: TypeError: fail_json() takes exactly 1 argument (2 given)

reviewable/pr18780/r1
Mike Riddle 9 years ago
parent 1d6b31a90f
commit 062c7764e6

@ -188,7 +188,7 @@ def role_action(module, iam, name, policy_name, skip, pdoc, state):
# Role doesn't exist so it's safe to assume the policy doesn't either
module.exit_json(changed=False)
else:
module.fail_json(e.message)
module.fail_json(msg=e.message)
try:
for pol in current_policies:

Loading…
Cancel
Save