projects
/
tools
/
python-jenkinsapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f908f4
)
Best guess at why a variable is undefined
author
Hugh Brown
<hbrown@amplify.com>
Thu, 10 Oct 2013 23:13:33 +0000
(19:13 -0400)
committer
Hugh Brown
<hbrown@amplify.com>
Thu, 10 Oct 2013 23:32:14 +0000
(19:32 -0400)
jenkinsapi/node.py
patch
|
blob
|
history
diff --git
a/jenkinsapi/node.py
b/jenkinsapi/node.py
index
e2409f0
..
8c5a6da
100644
(file)
--- a/
jenkinsapi/node.py
+++ b/
jenkinsapi/node.py
@@
-92,5
+92,6
@@
class Node(JenkinsBase):
html_result = self.jenkins.requester.get_and_confirm_status(url)
self.poll()
log.debug(html_result)
- if initial_state == self.is_temporarily_offline():
+ state = self.is_temporarily_offline()
+ if initial_state == state:
raise AssertionError("The node state has not changed: temporarilyOffline = %s" % state)