openqabot: Quote the module name
module names may contain # - especially if the module is loaded twice and openQA appends #1 and #2
This commit is contained in:
parent
3a01e88c49
commit
129280eb68
@ -4,6 +4,7 @@ from datetime import date
|
||||
import md5
|
||||
from pprint import pformat
|
||||
from urllib2 import HTTPError
|
||||
from urllib import quote_plus
|
||||
from osclib.comments import CommentAPI
|
||||
|
||||
import requests
|
||||
@ -298,7 +299,7 @@ class OpenQABot(ReviewBot.ReviewBot):
|
||||
|
||||
@staticmethod
|
||||
def get_step_url(testurl, modulename):
|
||||
failurl = testurl + '/modules/{!s}/fails'.format(modulename)
|
||||
failurl = testurl + '/modules/{!s}/fails'.format(quote_plus(modulename))
|
||||
fails = requests.get(failurl).json()
|
||||
failed_step = fails.get('first_failed_step', 1)
|
||||
return "[{!s}]({!s}#step/{!s}/{:d})".format(OpenQABot.emd(modulename), testurl, modulename, failed_step)
|
||||
|
Loading…
x
Reference in New Issue
Block a user