Skip to content

Commit

Permalink
In Graph make sure is_resource id is string (#3252)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong authored May 16, 2024
1 parent 118686c commit d585a28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cfnlint/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ def _add_edge(self, source_id, target_id, source_path, settings):

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

def _find_parameter(self, string):
Expand Down

0 comments on commit d585a28

Please sign in to comment.