Skip to content

Commit 3f3a2a0

Browse files
committedJan 17, 2025
Fix Formatting
1 parent 04a42c4 commit 3f3a2a0

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed
 

‎samcli/lib/sync/flows/alias_version_sync_flow.py

+14-12
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ class AliasVersionSyncFlow(SyncFlow):
2727
_lambda_client: Any
2828

2929
def __init__(
30-
self,
31-
function_identifier: str,
32-
alias_name: str,
33-
delete_old_alias: bool,
34-
build_context: "BuildContext",
35-
deploy_context: "DeployContext",
36-
sync_context: "SyncContext",
37-
physical_id_mapping: Dict[str, str],
38-
stacks: Optional[List[Stack]] = None,
30+
self,
31+
function_identifier: str,
32+
alias_name: str,
33+
delete_old_alias: bool,
34+
build_context: "BuildContext",
35+
deploy_context: "DeployContext",
36+
sync_context: "SyncContext",
37+
physical_id_mapping: Dict[str, str],
38+
stacks: Optional[List[Stack]] = None,
3939
):
4040
"""
4141
Parameters
@@ -118,8 +118,10 @@ def _equality_keys(self) -> Any:
118118

119119
def _get_version_alias_if_exists(self) -> Optional[str]:
120120
try:
121-
return str(self._lambda_client.get_alias(FunctionName=self.get_physical_id(self._function_identifier),
122-
Name=self._alias_name)
123-
.get("FunctionVersion"))
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+
)
124126
except self._lambda_client.exceptions.ResourceNotFoundException:
125127
return None

‎tests/unit/lib/sync/flows/test_alias_version_sync_flow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
class TestAliasVersionSyncFlow(TestCase):
10-
def create_sync_flow(self, delete_old_alias = False):
10+
def create_sync_flow(self, delete_old_alias=False):
1111
sync_flow = AliasVersionSyncFlow(
1212
"Function1",
1313
"Alias1",

0 commit comments

Comments
 (0)
Failed to load comments.