summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSri Vignesh <sselvan@redhat.com>2020-05-28 20:04:13 +0530
committerVaibhav Mahajan <vamahaja@redhat.com>2020-06-01 11:59:20 +0000
commitb6d9bcff82f4a9aa06c64e5b76b5d5f120b28bf6 (patch)
treee732ec5ec06821206a6f328ba79b4e953a314ff1 /tests
parentf58761cbe59c30237a55938322b2d9f553e9fce4 (diff)
[TestFix] Fix for loop variable
Tc 'test_create_volumes_enabling_and_disabling_heketi_devices' uses incorrect variable name inside for loop while disabling node. Use correct variable inside for loop to disable expected nodes. Change-Id: I0be101e753c387eee25e0fc0b778d884ae6bb609 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/heketi/test_disabling_device.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/heketi/test_disabling_device.py b/tests/functional/heketi/test_disabling_device.py
index 936e2ff..5c287d4 100644
--- a/tests/functional/heketi/test_disabling_device.py
+++ b/tests/functional/heketi/test_disabling_device.py
@@ -25,7 +25,7 @@ class TestDisableHeketiDevice(baseclass.BaseClass):
# Disable 4th and other nodes
if len(node_id_list) > 3:
- for node in node_id_list[3:]:
+ for node_id in node_id_list[3:]:
heketi_ops.heketi_node_disable(
self.heketi_client_node, self.heketi_server_url, node_id)
self.addCleanup(