get_node_info fails

Bug #1853742 reported by alexey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Jenkins
New
Undecided
Unassigned

Bug Description

self.client = jenkins.Jenkins(JENKINS_URL, username=JENKINS_USER, password=JENKINS_PASSWORD)
ret_nodes = self.client.get_nodes()
print(ret_nodes)

ret_job_ = self.client.get_node_info(ret_nodes[0]["name"])
print(ret_job_)
sys.exit()

Output:

[{'offline': False, 'name': u'master'}]
Traceback (most recent call last):
  File "path/Tools.py", line 22, in <module>
    ret_job_ = self.client.get_node_info(ret_nodes[0]["name"])
  File "/Library/Python/2.7/site-packages/jenkins/__init__.py", line 1465, in get_node_info
    raise JenkinsException('node[%s] does not exist' % name)
jenkins.JenkinsException: node[master] does not exist

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.