Merge "Stop stack traces on Swift when receiving 403"

This commit is contained in:
Zuul 2024-06-05 08:12:36 +00:00 committed by Gerrit Code Review
commit 1f8999b09f

@ -97,6 +97,10 @@ class _Base(plugin_base.PollsterBase):
except ClientException as e:
if e.http_status == 404:
LOG.warning("Swift tenant id %s not found.", t.id)
elif e.http_status == 403:
LOG.error("The credentials configured does not have "
"correct roles to access Swift tenant id %s.",
t.id)
else:
raise e