Merge pull request #28602 from eyj/fix-28601

Allow setting of custom dimensions in asg alarm specification
This commit is contained in:
Mike Place 2015-11-05 08:00:24 -07:00
commit 464aa6b062

View File

@ -610,7 +610,8 @@ def _alarms_present(name, alarms, alarms_from_pillar, region, key, keyid, profil
info['name'] = name + ' ' + info['name']
info['attributes']['description'] = name + ' ' + info['attributes']['description']
# add dimension attribute
info['attributes']['dimensions'] = {'AutoScalingGroupName': [name]}
if 'dimensions' not in info['attributes']:
info['attributes']['dimensions'] = {'AutoScalingGroupName': [name]}
# set alarm
kwargs = {
'name': info['name'],