diff options
author | Valerii Ponomarov <vponomar@redhat.com> | 2018-12-21 09:21:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.host.prod.eng.bos.redhat.com> | 2018-12-21 09:21:11 +0000 |
commit | d8b97355d98407b7ca84836a76d9d0b3bfe4deb9 (patch) | |
tree | 3bbe810a6322b49a61350adccbca4f3ab99b5d17 /tests | |
parent | 60d093827bd45ad1e8e7b1df0bb2fe718cacde1b (diff) | |
parent | 19a779c3051565cdbfa080460e46a00e824b2589 (diff) |
Merge "Fix bug in 'test_volume_creation_no_free_devices' test case"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/common/heketi/test_volume_creation.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/functional/common/heketi/test_volume_creation.py b/tests/functional/common/heketi/test_volume_creation.py index b3db8446..07dba094 100644 --- a/tests/functional/common/heketi/test_volume_creation.py +++ b/tests/functional/common/heketi/test_volume_creation.py @@ -110,11 +110,10 @@ class TestVolumeCreationTestCases(heketi_libs.HeketiBaseClass): node_info_list.append(node_info) # Disable 4th and other nodes - if len(node_id_list) > 3: - for node in node_id_list[3:]: - heketi_ops.heketi_node_disable(node, server_url, node_id) - self.addCleanup( - heketi_ops.heketi_node_enable, node, server_url, node_id) + for node_id in node_id_list[3:]: + heketi_ops.heketi_node_disable(node, server_url, node_id) + self.addCleanup( + heketi_ops.heketi_node_enable, node, server_url, node_id) # Disable second and other devices on the first 3 nodes for node_info in node_info_list[0:3]: |