Skip to content

Commit

Permalink
fixed ResourceConflictException when Uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
rriifftt committed Dec 2, 2021
1 parent a5036e6 commit 1372b46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lambda_uploader/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def upload_existing(self, pkg):
)
LOG.debug("AWS update_function_code response: %s"
% conf_update_resp)

waiter = self._lambda_client.get_waiter('function_updated')
LOG.debug("Waiting for lambda function to be updated")
waiter.wait(FunctionName=self._config.name)

LOG.debug('running update_function_configuration')
response = self._lambda_client.update_function_configuration(
FunctionName=self._config.name,
Expand Down

0 comments on commit 1372b46

Please sign in to comment.