Fix assertions
diff --git a/cvp_checks/tests/test_mtu.py b/cvp_checks/tests/test_mtu.py
index 735091f..940c145 100644
--- a/cvp_checks/tests/test_mtu.py
+++ b/cvp_checks/tests/test_mtu.py
@@ -62,5 +62,5 @@
row.insert(0, interf)
mtu_data.append(row)
assert len(mtu_data) == 0, \
- "Several problems found: {1}".format(
+ "Several problems found: {0}".format(
json.dumps(mtu_data, indent=4))
diff --git a/cvp_checks/tests/test_packet_checker.py b/cvp_checks/tests/test_packet_checker.py
index 30ddb73..a583c24 100644
--- a/cvp_checks/tests/test_packet_checker.py
+++ b/cvp_checks/tests/test_packet_checker.py
@@ -38,7 +38,7 @@
row.insert(0, deb)
pkts_data.append(row)
assert len(pkts_data) <= 1, \
- "Several problems found: {1}".format(
+ "Several problems found: {0}".format(
json.dumps(pkts_data, indent=4))
@@ -52,6 +52,7 @@
output = local_salt_client.cmd("L@"+','.join(nodes_in_group), 'pip.freeze', expr_form='compound')
nodes = []
+
pkts_data = []
my_set = set()
@@ -74,5 +75,5 @@
row.insert(0, deb)
pkts_data.append(row)
assert len(pkts_data) <= 1, \
- "Several problems found: {1}".format(
+ "Several problems found: {0}".format(
json.dumps(pkts_data, indent=4))
diff --git a/cvp_checks/tests/test_repo_list.py b/cvp_checks/tests/test_repo_list.py
index 3e440a5..0e35f37 100644
--- a/cvp_checks/tests/test_repo_list.py
+++ b/cvp_checks/tests/test_repo_list.py
@@ -53,7 +53,7 @@
rows.append("{}: No repo".format('pillars'))
diff[repo] = rows
assert fail_counter == 0, \
- "Several problems found: {1}".format(
+ "Several problems found: {0}".format(
json.dumps(diff, indent=4))
if fail_counter == 0 and len(diff) > 0:
print "\nWarning: nodes contain more repos than reclass"
diff --git a/cvp_checks/tests/test_services.py b/cvp_checks/tests/test_services.py
index 284956d..a623508 100644
--- a/cvp_checks/tests/test_services.py
+++ b/cvp_checks/tests/test_services.py
@@ -32,5 +32,5 @@
row.insert(0, srv)
pkts_data.append(row)
assert len(pkts_data) <= 1, \
- "Several problems found: {1}".format(
+ "Several problems found: {0}".format(
json.dumps(pkts_data, indent=4))