Remove default value for 'value' option in route53 module (#32297)

* [route53] Remove default value for 'value' option. Fixes #32296.

* assign value_in the default value after the required_if check
This commit is contained in:
Prasad Katti 2017-12-07 20:15:41 -08:00 committed by Will Thames
parent 363dfcb24c
commit fb0343cd12

View file

@ -490,7 +490,7 @@ def main():
alias=dict(required=False, type='bool'), alias=dict(required=False, type='bool'),
alias_hosted_zone_id=dict(required=False), alias_hosted_zone_id=dict(required=False),
alias_evaluate_target_health=dict(required=False, type='bool', default=False), alias_evaluate_target_health=dict(required=False, type='bool', default=False),
value=dict(required=False, type='list', default=[]), value=dict(required=False, type='list'),
overwrite=dict(required=False, type='bool'), overwrite=dict(required=False, type='bool'),
retry_interval=dict(required=False, default=500), retry_interval=dict(required=False, default=500),
private_zone=dict(required=False, type='bool', default=False), private_zone=dict(required=False, type='bool', default=False),
@ -535,7 +535,7 @@ def main():
ttl_in = module.params.get('ttl') ttl_in = module.params.get('ttl')
record_in = module.params.get('record').lower() record_in = module.params.get('record').lower()
type_in = module.params.get('type') type_in = module.params.get('type')
value_in = module.params.get('value') value_in = module.params.get('value') or []
alias_in = module.params.get('alias') alias_in = module.params.get('alias')
alias_hosted_zone_id_in = module.params.get('alias_hosted_zone_id') alias_hosted_zone_id_in = module.params.get('alias_hosted_zone_id')
alias_evaluate_target_health_in = module.params.get('alias_evaluate_target_health') alias_evaluate_target_health_in = module.params.get('alias_evaluate_target_health')