mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #28213 from rallytime/boto_route53_state
If record returned None, don't continue with the state. Something went wrong
This commit is contained in:
commit
0fa094ae11
@ -134,6 +134,11 @@ def present(
|
||||
record = __salt__['boto_route53.get_record'](name, zone, record_type,
|
||||
False, region, key, keyid,
|
||||
profile)
|
||||
if record is None:
|
||||
ret['comment'] = 'Error: Something went wrong getting the record. ' \
|
||||
'Please check your credentials.'
|
||||
ret['result'] = False
|
||||
return ret
|
||||
|
||||
if isinstance(record, dict) and not record:
|
||||
if __opts__['test']:
|
||||
|
Loading…
Reference in New Issue
Block a user