From 496ccbf0e53be31050f2f83f52c5b64d32505efb Mon Sep 17 00:00:00 2001 From: mark-woolley Date: Fri, 4 Feb 2022 17:13:15 +0000 Subject: [PATCH] PR feedback --- plugins/modules/iam_managed_policy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/modules/iam_managed_policy.py b/plugins/modules/iam_managed_policy.py index 429e6417218..403b4720d50 100644 --- a/plugins/modules/iam_managed_policy.py +++ b/plugins/modules/iam_managed_policy.py @@ -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, @@ -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):