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:
Mike Place 2015-10-23 07:54:50 -06:00
commit 0fa094ae11

View File

@ -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']: