Skip to content

Commit 5ea298d

Browse files
committed
bugzilla: Fix --nosslverify
1 parent 02ab91a commit 5ea298d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

bugzilla/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ class NovellBugzilla(Bugzilla34):
3737
pass
3838

3939

40-
def getBugzillaClassForURL(url):
40+
def getBugzillaClassForURL(url, sslverify):
4141
url = Bugzilla3.fix_url(url)
4242
log.debug("Detecting subclass for %s", url)
43-
s = ServerProxy(url, RequestsTransport(url))
43+
s = ServerProxy(url, RequestsTransport(url, sslverify=sslverify))
4444
rhbz = False
4545
bzversion = ''
4646
c = None
@@ -114,7 +114,8 @@ def __init__(self, **kwargs):
114114
# Use of __init__ of non parent class
115115
# We base of _BugzillaBase to help pylint figure things out
116116

117-
c = getBugzillaClassForURL(kwargs['url'])
117+
c = getBugzillaClassForURL(kwargs['url'],
118+
kwargs.get('sslverify', True))
118119
if not c:
119120
raise ValueError("Couldn't determine Bugzilla version for %s" %
120121
kwargs['url'])

0 commit comments

Comments
 (0)