mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Do not set a default value for description in the iam_role module. (#32629)
This commit is contained in:
parent
d22627d944
commit
134b9f50c3
1 changed files with 3 additions and 2 deletions
|
@ -214,7 +214,8 @@ def create_or_update_role(connection, module):
|
||||||
params['Path'] = module.params.get('path')
|
params['Path'] = module.params.get('path')
|
||||||
params['RoleName'] = module.params.get('name')
|
params['RoleName'] = module.params.get('name')
|
||||||
params['AssumeRolePolicyDocument'] = module.params.get('assume_role_policy_document')
|
params['AssumeRolePolicyDocument'] = module.params.get('assume_role_policy_document')
|
||||||
params['Description'] = module.params.get('description')
|
if module.params.get('description') is not None:
|
||||||
|
params['Description'] = module.params.get('description')
|
||||||
managed_policies = module.params.get('managed_policy')
|
managed_policies = module.params.get('managed_policy')
|
||||||
if managed_policies:
|
if managed_policies:
|
||||||
managed_policies = convert_friendly_names_to_arns(connection, module, managed_policies)
|
managed_policies = convert_friendly_names_to_arns(connection, module, managed_policies)
|
||||||
|
@ -368,7 +369,7 @@ def main():
|
||||||
assume_role_policy_document=dict(type='json'),
|
assume_role_policy_document=dict(type='json'),
|
||||||
managed_policy=dict(type='list', aliases=['managed_policies']),
|
managed_policy=dict(type='list', aliases=['managed_policies']),
|
||||||
state=dict(choices=['present', 'absent'], required=True),
|
state=dict(choices=['present', 'absent'], required=True),
|
||||||
description=dict(required=False, type='str', default='')
|
description=dict(required=False, type='str')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue