We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e55672 commit 95bdd62Copy full SHA for 95bdd62
samtranslator/translator/translator.py
@@ -51,7 +51,7 @@ def _get_function_names(self, resource_dict, intrinsics_resolver):
51
# adds to the function_names dict with key as the api_name and value as the function_name
52
if item.get("Type") == "Api" and item.get("Properties") and item.get("Properties").get("RestApiId"):
53
rest_api = item.get("Properties").get("RestApiId")
54
- if type(rest_api) == dict or isinstance(rest_api, dict):
+ if isinstance(rest_api, dict):
55
api_name = item.get("Properties").get("RestApiId").get("Ref")
56
else:
57
api_name = item.get("Properties").get("RestApiId")
0 commit comments