Python 3 fixes.

This commit is contained in:
Steve Pulec 2015-01-07 21:40:03 -05:00
parent 8da6437689
commit b8a11b7b8d

View File

@ -164,10 +164,10 @@ def parse_condition(condition, resources_map):
if isinstance(condition, bool):
return condition
condition_operator = condition.keys()[0]
condition_operator = list(condition.keys())[0]
condition_values = []
for value in condition.values()[0]:
for value in list(condition.values())[0]:
# Check if we are referencing another Condition
if 'Condition' in value:
condition_values.append(resources_map[value['Condition']])