Skip to content

Commit

Permalink
Pass plugin configuration to koji ClientSession
Browse files Browse the repository at this point in the history
Pass plugin section configuration to `koji.ClientSession` as option,
allowing to pass options like `no_ssl_verify = True` (useful for koji
private instances running with self signed certificates).

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
  • Loading branch information
sandrobonazzola authored and psss committed Nov 10, 2023
1 parent 014a793 commit 7d39512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion did/plugins/koji.py
Expand Up @@ -59,7 +59,7 @@ def __init__(self, option, name=None, parent=None, user=None):
except KeyError:
raise did.base.ReportError(
"No koji url set in the [{0}] section".format(option))
server = koji.ClientSession(url)
server = koji.ClientSession(url, opts=config)
try:
user = server.getUser(config['login'], strict=True)
except KeyError:
Expand Down

0 comments on commit 7d39512

Please sign in to comment.