mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #28602 from eyj/fix-28601
Allow setting of custom dimensions in asg alarm specification
This commit is contained in:
commit
464aa6b062
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user