Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Apr 5, 2023
1 parent e74d237 commit 5a2ba74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions samtranslator/model/connector/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,10 @@ def get_resource_reference(
# Must provide Id (with optional Qualifier) or a supported combination of other properties
# If Id is not provided, all values must come from overrides.
if not logical_id:
resource_type = get_underlying_cfn_resource_type(obj.get("Type"))

if not _is_nonblank_str(resource_type):
raise ConnectorResourceError("'Type' is missing or not a string.")
resource_type = str(resource_type)
resource_type = get_underlying_cfn_resource_type(str(resource_type))


return ConnectorResourceReference(
logical_id=None,
Expand Down

0 comments on commit 5a2ba74

Please sign in to comment.