[CVP] Fix several small issues found during testing
Related-PROD: PROD-30404
Change-Id: Ied92729a59fa9b053a09ce27733bb0db1df692e8
diff --git a/test_set/cvp-sanity/tests/test_mounts.py b/test_set/cvp-sanity/tests/test_mounts.py
index 2eca9fd..b79e6db 100644
--- a/test_set/cvp-sanity/tests/test_mounts.py
+++ b/test_set/cvp-sanity/tests/test_mounts.py
@@ -34,8 +34,12 @@
for node in mounts_by_nodes:
if node in exclude_nodes:
continue
- result[node] = "\n".join(sorted(mounts_by_nodes[node].split()))
- pretty_result[node] = sorted(mounts_by_nodes[node].split())
+ if isinstance(mounts_by_nodes[node], bool):
+ result[node] = 'Cannot access this node'
+ pretty_result[node] = 'Cannot access this node'
+ else:
+ result[node] = "\n".join(sorted(mounts_by_nodes[node].split()))
+ pretty_result[node] = sorted(mounts_by_nodes[node].split())
if not result:
pytest.skip("These nodes are skipped")