Fix in test_etc_hosts
diff --git a/cvp_checks/utils/__init__.py b/cvp_checks/utils/__init__.py
index 746b5bf..83b867d 100644
--- a/cvp_checks/utils/__init__.py
+++ b/cvp_checks/utils/__init__.py
@@ -40,7 +40,7 @@
result = ''
for node in node_list:
result += node + ' ' + separator + ' '
- return result.strip(' ' + separator + ' ')
+ return result[:-(len(separator)+2)]
def get_monitoring_ip(param_name):
@@ -62,7 +62,6 @@
testname = test.split('.')[0]
if 'skipped_nodes' in config.get(testname).keys():
skipped_nodes += config.get(testname)['skipped_nodes'] or []
-
if skipped_nodes != ['']:
print "\nNotice: {0} nodes will be skipped".format(skipped_nodes)
nodes = local_salt_client.cmd(