Merge pull request #1906 from mjschultz/patch-1

Return an iterable instead of None
This commit is contained in:
Brian Coca 2015-08-12 13:24:52 -04:00
commit 090926b938

View file

@ -184,7 +184,7 @@ def create_metric_alarm(connection, module):
comparisons = {'<=' : 'LessThanOrEqualToThreshold', '<' : 'LessThanThreshold', '>=' : 'GreaterThanOrEqualToThreshold', '>' : 'GreaterThanThreshold'}
alarm.comparison = comparisons[comparison]
dim1 = module.params.get('dimensions')
dim1 = module.params.get('dimensions', {})
dim2 = alarm.dimensions
for keys in dim1: