Skip to content

Commit

Permalink
Accept keywords args in tenancity retry to match latest tenacity
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Mar 6, 2021
1 parent 17af1e2 commit b52d142
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -360,7 +360,7 @@ def _cleanup_hostname(self, provider, hostname_config):
@tenacity.retry(stop=tenacity.stop_after_attempt(7),
wait=tenacity.wait_exponential(multiplier=1, min=4, max=256),
reraise=True,
after=lambda *args: log.debug("Instance not deleted, retrying......"))
after=lambda *args, **kwargs: log.debug("Node not registered, rerunning playbook..."))
def _cleanup_instance(self, provider, instance_id, hostname_config):
log.debug("Deleting deployment instance %s", instance_id)
try:
Expand Down

0 comments on commit b52d142

Please sign in to comment.