Skip to content

Commit 038bc2d

Browse files
committed
backend: Return full 'version' output to caller
To be consistent with how we handle the other APIs Signed-off-by: Cole Robinson <[email protected]>
1 parent fb85b17 commit 038bc2d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bugzilla/_backendxmlrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def get_xmlrpc_proxy(self):
160160
return self._xmlrpc_proxy
161161

162162
def bugzilla_version(self):
163-
return self._xmlrpc_proxy.Bugzilla.version()["version"]
163+
return self._xmlrpc_proxy.Bugzilla.version()
164164
def bugzilla_extensions(self):
165165
return self._xmlrpc_proxy.Bugzilla.extensions()
166166

bugzilla/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def connect(self, url=None):
488488
if self.api_key:
489489
log.debug("using API key")
490490

491-
version = self._backend.bugzilla_version()
491+
version = self._backend.bugzilla_version()["version"]
492492
log.debug("Bugzilla version string: %s", version)
493493
self._set_bz_version(version)
494494

0 commit comments

Comments
 (0)