Skip to content

Commit 1372b46

Browse files
committed
fixed ResourceConflictException when Uploading
1 parent a5036e6 commit 1372b46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lambda_uploader/uploader.py

+5
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)