Skip to content

Commit

Permalink
Merge pull request ansible#8 from dataxu/dxdevel-update-metric-alarms
Browse files Browse the repository at this point in the history
dxdevel-update-metric-alarms
  • Loading branch information
ferrants committed Jan 29, 2015
2 parents 6893f61 + e8b70b1 commit 853a197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/cloud/ec2_metric_alarm
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def create_metric_alarm(connection, module):
for keys in dim1:
if not isinstance(dim1[keys], list):
dim1[keys] = [dim1[keys]]
if dim1[keys] != dim2[keys]:
if keys not in dim2 or dim1[keys] != dim2[keys]:
changed=True
setattr(alarm, 'dimensions', dim1)

Expand Down

0 comments on commit 853a197

Please sign in to comment.