Skip to content

Commit d585a28

Browse files
authored
In Graph make sure is_resource id is string (#3252)
1 parent 118686c commit d585a28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cfnlint/graph.py

+2
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ def _add_edge(self, source_id, target_id, source_path, settings):
261261

262262
def _is_resource(self, cfn, identifier):
263263
"""Check if the identifier is that of a Resource"""
264+
if not isinstance(identifier, str):
265+
return None
264266
return cfn.template.get("Resources", {}).get(identifier, {})
265267

266268
def _find_parameter(self, string):

0 commit comments

Comments
 (0)