Py26 cloudwatch fixes.
This commit is contained in:
parent
93f56322d8
commit
ca44d4680a
@ -17,12 +17,11 @@ class CloudWatchResponse(BaseResponse):
|
|||||||
results = []
|
results = []
|
||||||
param_index = 1
|
param_index = 1
|
||||||
while True:
|
while True:
|
||||||
index_prefix = "{}.{}.".format(param_prefix, param_index)
|
index_prefix = "{0}.{1}.".format(param_prefix, param_index)
|
||||||
new_items = {
|
new_items = {}
|
||||||
camelcase_to_underscores(key.replace(index_prefix, "")): value[0]
|
for key, value in self.querystring.items():
|
||||||
for key, value in self.querystring.items()
|
if key.startswith(index_prefix):
|
||||||
if key.startswith(index_prefix)
|
new_items[camelcase_to_underscores(key.replace(index_prefix, ""))] = value[0]
|
||||||
}
|
|
||||||
if not new_items:
|
if not new_items:
|
||||||
break
|
break
|
||||||
results.append(new_items)
|
results.append(new_items)
|
||||||
|
Loading…
Reference in New Issue
Block a user