Skip to content

Commit 1cb7f07

Browse files
lukaszachycrobinso
authored andcommitted
Detection of the RH Bugzilla by the extension() call
1 parent 726f6c1 commit 1cb7f07

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

bugzilla/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ def getBugzillaClassForURL(url):
2929
bzversion = ''
3030
c = None
3131

32-
# Check for a RH-only method
32+
# Check for a Red Hat extension
3333
try:
34-
log.debug("Checking for RH Bugzilla method bugzilla.getProdInfo()")
35-
prodinfo = s.bugzilla.getProdInfo()
36-
rhbz = True
34+
log.debug("Checking for Red Hat Bugzilla extension")
35+
extensions = s.Bugzilla.extensions()
36+
if extensions.get('extensions', {}).get('RedHat', False):
37+
rhbz = True
3738
except xmlrpclib.Fault:
3839
pass
3940
log.debug("rhbz=%s" % str(rhbz))

0 commit comments

Comments
 (0)