Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
marknet15 committed Feb 4, 2022
1 parent 0914c46 commit 496ccbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/modules/iam_managed_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@
policy:
description: Returns the policy json structure, when state == absent this will return the value of the removed policy.
returned: success
type: str
type: complex
contains: {}
sample: '{
"arn": "arn:aws:iam::aws:policy/AdministratorAccess "
"attachment_count": 0,
Expand Down Expand Up @@ -299,7 +300,7 @@ def create_or_update_policy(existing_policy):

module.exit_json(changed=changed, policy=camel_dict_to_snake_dict(updated_policy))
else:
module.exit_json(changed=changed)
module.exit_json(changed=changed, policy=camel_dict_to_snake_dict(existing_policy))


def delete_policy(existing_policy):
Expand Down

0 comments on commit 496ccbf

Please sign in to comment.