Skip to content

Commit

Permalink
Add underscore to function name
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Apr 5, 2023
1 parent 36d10a4 commit 31f51a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samtranslator/model/connector/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _is_valid_resource_reference(obj: Dict[str, Any]) -> bool:
return id_provided != non_id_provided


def get_underlying_cfn_resource_type(resource_type: str) -> str:
def _get_underlying_cfn_resource_type(resource_type: str) -> str:
"""profiles.json only support CFN resource type. We need to convert SAM resource types to corresponding CFN resource type"""
return SAM_TO_CFN_RESOURCE_TYPE.get(resource_type, resource_type)

Expand All @@ -125,7 +125,7 @@ def get_resource_reference(
resource_type = obj.get("Type")
if not _is_nonblank_str(resource_type):
raise ConnectorResourceError("'Type' is missing or not a string.")
resource_type = get_underlying_cfn_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 31f51a6

Please sign in to comment.