mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix returning module parameters for iam_role (#30669)
* remove iam_role= from module.exit_json() to match return docs. * Add back old iam_role= for backwards compat
This commit is contained in:
parent
a026d64c08
commit
8b3ca4c537
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ def create_or_update_role(connection, module):
|
|||
role = get_role(connection, module, params['RoleName'])
|
||||
|
||||
role['attached_policies'] = get_attached_policy_list(connection, module, params['RoleName'])
|
||||
module.exit_json(changed=changed, iam_role=camel_dict_to_snake_dict(role))
|
||||
module.exit_json(changed=changed, iam_role=camel_dict_to_snake_dict(role), **camel_dict_to_snake_dict(role))
|
||||
|
||||
|
||||
def destroy_role(connection, module):
|
||||
|
|
Loading…
Reference in a new issue