File tree 1 file changed +10
-0
lines changed
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):
61
61
)
62
62
LOG .debug ("AWS update_function_code response: %s"
63
63
% 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
+
64
69
LOG .debug ('running update_function_configuration' )
65
70
response = self ._lambda_client .update_function_configuration (
66
71
FunctionName = self ._config .name ,
@@ -80,6 +85,11 @@ def upload_existing(self, pkg):
80
85
version = response .get ('Version' )
81
86
# Publish the version after upload and config update if needed
82
87
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
+
83
93
resp = self ._lambda_client .publish_version (
84
94
FunctionName = self ._config .name ,
85
95
)
You can’t perform that action at this time.
0 commit comments