Do not set a default value for description in the iam_role module. (#32629)

pull/32435/merge
Sloane Hertel 7 years ago committed by ansibot
parent d22627d944
commit 134b9f50c3

@ -214,6 +214,7 @@ def create_or_update_role(connection, module):
params['Path'] = module.params.get('path')
params['RoleName'] = module.params.get('name')
params['AssumeRolePolicyDocument'] = module.params.get('assume_role_policy_document')
if module.params.get('description') is not None:
params['Description'] = module.params.get('description')
managed_policies = module.params.get('managed_policy')
if managed_policies:
@ -368,7 +369,7 @@ def main():
assume_role_policy_document=dict(type='json'),
managed_policy=dict(type='list', aliases=['managed_policies']),
state=dict(choices=['present', 'absent'], required=True),
description=dict(required=False, type='str', default='')
description=dict(required=False, type='str')
)
)

Loading…
Cancel
Save