Kube friendly network module
Added:
- Network module selective execution (reclass comparison)
- Updated statistics handling
Fixes:
- Unittests fixes
Change-Id: Ie04f54b56bcae2e88456a7788b17dd7cb3190854
Related-PROD: PROD-35903
diff --git a/cfg_checker/common/settings.py b/cfg_checker/common/settings.py
index deebbc0..89457d7 100644
--- a/cfg_checker/common/settings.py
+++ b/cfg_checker/common/settings.py
@@ -247,6 +247,10 @@
"Use KUBE_NODE_KEYPATH, see 'etc/example.env'. "
"Consider checking KUBE_NODE_USER as well"
)
+ self.kube_node_homepath = os.path.join(
+ '/home',
+ self.kube_node_user
+ )
else:
# Init keys for nodes in case of remote env
# KUBE_NODE_KEYPATH is provided in case of nodes key would be
@@ -259,6 +263,7 @@
"Supply KUBE_NODE_KEYPATH to update."
)
self.kube_node_keypath = self.ssh_key
+ self.kube_node_homepath = self.homepath
def _init_env(self, env_name=None):
"""Inits the environment vars from the env file
@@ -377,9 +382,7 @@
# names and folders
self.user = self.pw_user.pw_name
self.homepath = self.pw_user.pw_dir
- self.node_homepath = os.path.join('/home', self.kube_node_user)
else:
# names and folders in case of remote env
self.user = self.ssh_user
self.homepath = os.path.join('/home', self.ssh_user)
- self.node_homepath = self.homepath