Skip to content

Commit

Permalink
Revert breaking change - iam_role return values (#1068)
Browse files Browse the repository at this point in the history
Revert breaking change - iam_role return values

SUMMARY
This hasn't been release yet, so a changelog isn't needed.
While I'm generally good with cleaning up the output values here, this needs to be done as a separate breaking change, and must not be backported to stable-3.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
iam_role
ADDITIONAL INFORMATION
Breaking change silently introduced by #1054

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Joseph Torcasso <None>
  • Loading branch information
tremble authored Apr 14, 2022
1 parent d0c9f1a commit 8d80e9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/modules/iam_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ def create_or_update_role(module, client):
role['AttachedPolicies'] = get_attached_policy_list(module, client, role_name)
role['tags'] = get_role_tags(module, client)

module.exit_json(changed=changed, iam_role=camel_dict_to_snake_dict(role, ignore_list=['tags']))
camel_role = camel_dict_to_snake_dict(role, ignore_list=['tags'])
module.exit_json(changed=changed, iam_role=camel_role, **camel_role)


def create_instance_profiles(module, client, role_name, path):
Expand Down

0 comments on commit 8d80e9a

Please sign in to comment.