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 94bc1e4 commit 8e02b00Copy full SHA for 8e02b00
samcli/lib/sync/flows/alias_version_sync_flow.py
@@ -118,10 +118,8 @@ def _equality_keys(self) -> Any:
118
119
def _get_version_alias_if_exists(self) -> Optional[str]:
120
try:
121
- return str(
122
- self._lambda_client.get_alias(
123
- FunctionName=self.get_physical_id(self._function_identifier), Name=self._alias_name
124
- ).get("FunctionVersion")
125
- )
+ return self._lambda_client.get_alias(
+ FunctionName=self.get_physical_id(self._function_identifier), Name=self._alias_name
+ ).get("FunctionVersion")
126
except self._lambda_client.exceptions.ResourceNotFoundException:
127
return None
0 commit comments