File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ def upload_existing(self, pkg):
6161 )
6262 LOG .debug ("AWS update_function_code response: %s"
6363 % conf_update_resp )
64+
65+ waiter = self ._lambda_client .get_waiter ('function_updated' )
66+ LOG .debug ("Waiting for lambda function to be updated" )
67+ waiter .wait (FunctionName = self ._config .name )
68+
6469 LOG .debug ('running update_function_configuration' )
6570 response = self ._lambda_client .update_function_configuration (
6671 FunctionName = self ._config .name ,
@@ -80,6 +85,11 @@ def upload_existing(self, pkg):
8085 version = response .get ('Version' )
8186 # Publish the version after upload and config update if needed
8287 if self ._config .publish :
88+
89+ waiter = self ._lambda_client .get_waiter ('function_updated' )
90+ LOG .debug ("Waiting for lambda function to be updated" )
91+ waiter .wait (FunctionName = self ._config .name )
92+
8393 resp = self ._lambda_client .publish_version (
8494 FunctionName = self ._config .name ,
8595 )
You can’t perform that action at this time.
0 commit comments