From: Alfredo Deza Date: Fri, 2 Sep 2016 18:18:12 +0000 (-0400) Subject: ansible/library fix wrong exc object references X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F461%2Fhead;p=ceph-build.git ansible/library fix wrong exc object references Signed-off-by: Alfredo Deza --- 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)