forked from pool/python-bugzilla
- Fix UL sections that is check also for URL without final slash this may fix bnc#807901 OBS-URL: https://build.opensuse.org/request/show/175863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=26
17 lines
581 B
Diff
17 lines
581 B
Diff
--- a/bugzilla/nvlbugzilla.py
|
|
+++ b/bugzilla/nvlbugzilla.py
|
|
@@ -82,7 +82,12 @@ class NovellBugzilla(Bugzilla34):
|
|
|
|
obs_url = self.__class__.obs_url
|
|
if not c.has_section(obs_url):
|
|
- return
|
|
+ if obs_url[-1:] == '/':
|
|
+ # strip the final slash and retry
|
|
+ self.__class__.obs_url = obs_url[:-1]
|
|
+ obs_url = self.__class__.obs_url
|
|
+ if not c.has_section(obs_url):
|
|
+ return
|
|
|
|
try:
|
|
user = c.get(obs_url, 'user')
|