Fail in boto_asg.present if alarms fail

This commit is contained in:
Ryan Lane 2015-10-14 16:24:46 -07:00
parent 1efa87a964
commit b8f4079c33

View file

@ -567,6 +567,8 @@ def present(
_ret = _alarms_present(name, alarms, alarms_from_pillar, region, key, keyid, profile)
ret['changes'] = dictupdate.update(ret['changes'], _ret['changes'])
ret['comment'] = ' '.join([ret['comment'], _ret['comment']])
if not _ret['result']:
ret['result'] = _ret['result']
return ret