From 161f180e75fbf3b37ba7585aa19573076eda3069 Mon Sep 17 00:00:00 2001 From: Douglas Viroel Date: Sat, 25 Apr 2020 17:18:14 -0300 Subject: [PATCH] Removing duplicated availability zones from tests This patch remove duplicated availability zones when retrieving them from service list. Closes-Bug: #1875180 Change-Id: I0ee61c3197547201f10340d388baf5e076494be5 --- manila_tempest_tests/tests/api/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manila_tempest_tests/tests/api/base.py b/manila_tempest_tests/tests/api/base.py index 8c18a4b3..bdd48f8c 100644 --- a/manila_tempest_tests/tests/api/base.py +++ b/manila_tempest_tests/tests/api/base.py @@ -711,7 +711,7 @@ class BaseSharesTest(test.BaseTestCase): service['binary'] == 'manila-share' and service['state'] == 'up' and re.search(backends, service['host'])] - return zones + return list(set(zones)) @classmethod def get_pools_matching_share_type(cls, share_type, client=None):