Skip to content

Commit

Permalink
Sleep between connection attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerysong committed Jul 12, 2024
1 parent 9280a22 commit d8f60cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/module_utils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def _open_url(self, path, method, data=None, fatal=True):

except ConnectionError as e:
if attempt < 5:
sleep attempt
continue
if self._module:
failure = {
Expand Down

0 comments on commit d8f60cc

Please sign in to comment.