Updates to kube env interaction
- local KUBECONFIG var detection
- proper handling of env vars
- fixes for KUBECONFIG loading when env file is given/not given
- main IP extraction
- wording fixes
Related-PROD: PROD-35903
Change-Id: I68f1fd18a72a99502460d3b6158a43cd60d7cf1b
diff --git a/cfg_checker/common/other.py b/cfg_checker/common/other.py
index e3a3271..3d0cc13 100644
--- a/cfg_checker/common/other.py
+++ b/cfg_checker/common/other.py
@@ -16,7 +16,7 @@
# 'Dirty' and simple way to execute piped cmds
def piped_shell(command):
- logger_cli.debug("...cmd:'{}'".format(command))
+ logger_cli.debug("... cmd:'{}'".format(command))
_code, _out = subprocess.getstatusoutput(command)
if _code:
logger_cli.error("Non-zero return code: {}, '{}'".format(_code, _out))
@@ -25,7 +25,7 @@
# 'Proper way to execute shell
def shell(command):
- logger_cli.debug("...cmd:'{}'".format(command))
+ logger_cli.debug("... cmd:'{}'".format(command))
_ps = subprocess.Popen(
command.split(),
stdout=subprocess.PIPE,