Fixed error message: TypeError: fail_json() takes exactly 1 argument (2 given)
This commit is contained in:
parent
ebd977e780
commit
f0156dda0d
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,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
|
# Role doesn't exist so it's safe to assume the policy doesn't either
|
||||||
module.exit_json(changed=False)
|
module.exit_json(changed=False)
|
||||||
else:
|
else:
|
||||||
module.fail_json(e.message)
|
module.fail_json(msg=e.message)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for pol in current_policies:
|
for pol in current_policies:
|
||||||
|
|
Loading…
Reference in a new issue