From a5237ba0bceea437c625519ea8c534f840c19167 Mon Sep 17 00:00:00 2001 From: jh629g Date: Thu, 4 Jun 2020 14:47:16 -0500 Subject: [PATCH] Update ranger update region statement Changed 'is' to '==' when comparing string values due to wanting to compare the values not the objects in the logical statement Change-Id: I7e918e49aed0a6cde1adf2ff1c8c73a4e3382111 --- ranger_tempest_plugin/tests/api/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ranger_tempest_plugin/tests/api/base.py b/ranger_tempest_plugin/tests/api/base.py index 317962a..5a46579 100755 --- a/ranger_tempest_plugin/tests/api/base.py +++ b/ranger_tempest_plugin/tests/api/base.py @@ -45,8 +45,8 @@ class BaseOrmTest(test.BaseTestCase): _, regions_list = cls.region_client.list_regions() regions = [x for x in regions_list['regions']] for region in regions: - if region['id'] is CONF.identity.region or \ - (region['id'] is CONF.ranger.alt_region and + if region['id'] == CONF.identity.region or \ + (region['id'] == CONF.ranger.alt_region and CONF.ranger.alt_region_available is True): cls.addClassResourceCleanup(cls.region_client.update_region, region['id'],