Skip to content

Commit

Permalink
Added python3 compatibility while accessin dict_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Buffer0x7cd authored and manvendra-singh0x7cd committed Mar 23, 2019
1 parent f018261 commit 06f7a83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def __process_element(self, element):
if element in CODEDEPLOY_PREDEFINED_CONFIGURATIONS_LIST:
return fnSub("CodeDeployDefault.Lambda${ConfigName}", {"ConfigName": element})
elif isinstance(element, dict):
if element.keys()[0] == "Fn::If":
if list(element)[0] == "Fn::If":
return self.__handle_intrinsic_function_in_deployment_type(element)
return element
else:
Expand Down

0 comments on commit 06f7a83

Please sign in to comment.