Skip to content

Commit 157ec8b

Browse files
committed
Update uploader.py
1 parent 1372b46 commit 157ec8b

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
@@ -85,6 +85,11 @@ def upload_existing(self, pkg):
8585
version = response.get('Version')
8686
# Publish the version after upload and config update if needed
8787
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+
8893
resp = self._lambda_client.publish_version(
8994
FunctionName=self._config.name,
9095
)

0 commit comments

Comments
 (0)