kojiwrapper: Add retries to login call
The gssapi_login call is not retried automatically by Koji yet (see koji#3170). Let's try to work around that by retrying in the calling code. JIRA: RHELCMP-8700 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
bebbefe46e
commit
f8c7ad28e4
@ -65,6 +65,9 @@ class KojiWrapper(object):
|
||||
self.koji_module.config.server, session_opts
|
||||
)
|
||||
|
||||
# This retry should be removed once https://pagure.io/koji/issue/3170 is
|
||||
# fixed and released.
|
||||
@util.retry(wait_on=(xmlrpclib.ProtocolError, koji.GenericError))
|
||||
def login(self):
|
||||
"""Authenticate to the hub."""
|
||||
auth_type = self.koji_module.config.authtype
|
||||
|
Loading…
Reference in New Issue
Block a user