Skip to content

Commit 7d39512

Browse files
sandrobonazzolapsss
authored andcommitted
Pass plugin configuration to koji ClientSession
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 <[email protected]>
1 parent 014a793 commit 7d39512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

did/plugins/koji.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, option, name=None, parent=None, user=None):
5959
except KeyError:
6060
raise did.base.ReportError(
6161
"No koji url set in the [{0}] section".format(option))
62-
server = koji.ClientSession(url)
62+
server = koji.ClientSession(url, opts=config)
6363
try:
6464
user = server.getUser(config['login'], strict=True)
6565
except KeyError:

0 commit comments

Comments
 (0)