From 24781ce055cb0e1c4a3ffe2a86c2a9c43d7b1994 Mon Sep 17 00:00:00 2001 From: Hugh Brown Date: Thu, 10 Oct 2013 19:13:33 -0400 Subject: [PATCH] Best guess at why a variable is undefined --- jenkinsapi/node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkinsapi/node.py b/jenkinsapi/node.py index e2409f0..8c5a6da 100644 --- 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) -- 2.34.1