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
This commit is contained in:
parent
7241704336
commit
a5237ba0bc
@ -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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user