Best guess at why a variable is undefined
authorHugh Brown <hbrown@amplify.com>
Thu, 10 Oct 2013 23:13:33 +0000 (19:13 -0400)
committerHugh Brown <hbrown@amplify.com>
Thu, 10 Oct 2013 23:32:14 +0000 (19:32 -0400)
jenkinsapi/node.py

index e2409f0..8c5a6da 100644 (file)
@@ -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)