From 4f5e52b07d15eef882d954f44fa66b46b56d7c20 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 2 Sep 2016 14:18:12 -0400 Subject: [PATCH] ansible/library fix wrong exc object references Signed-off-by: Alfredo Deza --- ansible/library/jenkins-node | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/library/jenkins-node b/ansible/library/jenkins-node index adc5a0e4..b8e83c78 100644 --- a/ansible/library/jenkins-node +++ b/ansible/library/jenkins-node @@ -238,7 +238,7 @@ def main(): # requests, can be properly translated into meaningful errors so that # Ansible can report those back. if ex.__class__.__name__ == 'HTTPError': - msg = "HTTPError %s: %s" % (exc_obj.code, exc_obj.url) + msg = "HTTPError %s: %s" % (ex.code, ex.url) else: message = getattr(ex, 'message', None) msg = getattr(ex, 'msg', message) -- 2.47.3