From 5c61470d647e69e54dc31ed674ee9d1f5419fd32 Mon Sep 17 00:00:00 2001 From: Ken Evensen Date: Fri, 18 Aug 2017 14:55:57 -0400 Subject: [PATCH 1/2] temp fix --- library/oc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/oc.py b/library/oc.py index 6b47668..3a39893 100644 --- a/library/oc.py +++ b/library/oc.py @@ -324,7 +324,7 @@ def connect(self, url, method, data=None): if info['status'] == 401: self.module.fail_json(msg=message + " Unauthorized. Check that you have a valid serivce account and token.") - self.module.log(msg=message) + self.module.fail_json(msg=message) try: json_body = self.module.from_json(body) From 4cfe648b13ca0d38e96ce02b37ee729d3909eafe Mon Sep 17 00:00:00 2001 From: Ken Evensen Date: Fri, 18 Aug 2017 15:00:21 -0400 Subject: [PATCH 2/2] back the way it was --- library/oc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/oc.py b/library/oc.py index 3a39893..6b47668 100644 --- a/library/oc.py +++ b/library/oc.py @@ -324,7 +324,7 @@ def connect(self, url, method, data=None): if info['status'] == 401: self.module.fail_json(msg=message + " Unauthorized. Check that you have a valid serivce account and token.") - self.module.fail_json(msg=message) + self.module.log(msg=message) try: json_body = self.module.from_json(body)