Ensure request data is in the correct format
Ensure that the parameters passed to POST requests are in the correct format. As with change Ia6ce75958bb, this change ensures that the parameters passed to POST requests are in the correct format so the data needed to trigger the use of POST won't result in an exception being thrown due to use of str instead of unicode on python 3. Change-Id: I542d56b6c392a8390d9eea6a860c798eade3f925
This commit is contained in:
parent
fdfcf10cf7
commit
0459f84956
|
@ -659,7 +659,7 @@ class Jenkins(object):
|
|||
:param name: Name of Jenkins job, ``str``
|
||||
:param number: Jenkins build number for the job, ``int``
|
||||
'''
|
||||
self.jenkins_open(Request(self.server + STOP_BUILD % self._get_encoded_params(locals())))
|
||||
self.jenkins_open(Request(self.server + STOP_BUILD % self._get_encoded_params(locals())), b'')
|
||||
|
||||
def get_nodes(self):
|
||||
'''Get a list of nodes connected to the Master
|
||||
|
@ -807,7 +807,7 @@ class Jenkins(object):
|
|||
}
|
||||
|
||||
self.jenkins_open(Request(
|
||||
self.server + CREATE_NODE % urlencode(params)))
|
||||
self.server + CREATE_NODE % urlencode(params)), b'')
|
||||
|
||||
self.assert_node_exists(name, 'create[%s] failed')
|
||||
|
||||
|
|
Loading…
Reference in New Issue