-
Task
-
Resolution: Done
-
Medium
-
None
Error reporting of healthcheck-k8s.py can be improved, i.e. if used with no options where environment settings differ from default values it exits without any actual error info:
# ./healthcheck-k8s.py Checking vGMUX REST API from SDNC Traceback (most recent call last): File "./healthcheck-k8s.py", line 35, in <module> print(json.dumps(json.loads(sz), indent=4)) File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded
Endpoint names and kube commands can be also parametrized and reused.