Skip to content

Commit

Permalink
fix: Retry on OpenStack HTTP status codes (#5943)
Browse files Browse the repository at this point in the history
Fixes GH-5687
  • Loading branch information
gglzf4 authored Feb 7, 2025
1 parent b45d66a commit b860d70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cloudinit/sources/helpers/openstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def _path_read(self, path, decode=False):
def should_retry_cb(cause):
try:
code = int(cause.code)
if code >= 400:
if code >= 400 and code not in [408, 429, 500, 502, 503, 504]:
return False
except (TypeError, ValueError):
# Older versions of requests didn't have a code.
Expand Down
1 change: 1 addition & 0 deletions tools/.github-cla-signers
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ frikilax
frittentheke
GabrielNagy
garzdin
gglzf4
giggsoff
gilbsgilbs
glyg
Expand Down

0 comments on commit b860d70

Please sign in to comment.