From: Salim Fadhley Date: Mon, 27 Feb 2012 20:33:37 +0000 (+0000) Subject: Lars Nordin's correction intended to cope with node-names which contain X-Git-Tag: v0.2.23~306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52b498928f75b2f39bd184a67dad3ac2416ec3f9;p=tools%2Fpython-jenkinsapi.git Lars Nordin's correction intended to cope with node-names which contain characters requiring HTTP escaping. Thanks for the fix Lars! --- diff --git a/jenkinsapi/jenkins.py b/jenkinsapi/jenkins.py index 016d358..af5ce52 100644 --- a/jenkinsapi/jenkins.py +++ b/jenkinsapi/jenkins.py @@ -160,7 +160,7 @@ class Jenkins(JenkinsBase): def get_node_url(self, nodename=""): """Return the url for nodes""" - url = "%(baseurl)s/computer/%(nodename)s" % {'baseurl': self.baseurl, 'nodename': nodename} + url = "%(baseurl)s/computer/%(nodename)s" % {'baseurl': self.baseurl, 'nodename': urllib.quote(nodename)} return url def has_node(self, nodename): diff --git a/setup.py b/setup.py index a74ce75..1207a0e 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os PROJECT_ROOT, _ = os.path.split(__file__) DESCRIPTION = open( os.path.join(PROJECT_ROOT, "README") ).read() -VERSION = REVISION = '0.1.2' +VERSION = REVISION = '0.1.3' PROJECT_NAME = 'JenkinsAPI' PROJECT_AUTHORS = "Salim Fadhley, Ramon van Alteren, Ruslan Lutsenko" PROJECT_EMAILS = 'salimfadhley@gmail.com, ramon@vanalteren.nl, ruslan.lutcenko@gmail.com'