@@ -27,15 +27,15 @@ class AliasVersionSyncFlow(SyncFlow):
27
27
_lambda_client : Any
28
28
29
29
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 ,
39
39
):
40
40
"""
41
41
Parameters
@@ -118,8 +118,10 @@ def _equality_keys(self) -> Any:
118
118
119
119
def _get_version_alias_if_exists (self ) -> Optional [str ]:
120
120
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
+ )
124
126
except self ._lambda_client .exceptions .ResourceNotFoundException :
125
127
return None
0 commit comments