@@ -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
0 commit comments