Fix OpenStack clients region parameter

"load_balancer.region" option description contains "If empty, the value
of identity.region is used instead", but the initialization code doesn't
use identity.region at all.
This commit adds a fallback to identity.region if load_balancer.region
is empty or undefined.

Change-Id: Ia7c53ba57f01d63ad76e42d0417d0547cf827026
This commit is contained in:
Gregory Thiemonge 2019-09-19 17:22:30 +02:00
parent 7140479919
commit 52b5843e8c
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class ManagerV2(clients.Manager):
params.update({
'auth_provider': self.auth_provider,
'service': CONF.load_balancer.catalog_type,
'region': CONF.load_balancer.region,
'region': CONF.load_balancer.region or CONF.identity.region,
'endpoint_type': CONF.load_balancer.endpoint_type,
'build_interval': CONF.load_balancer.build_interval,
'build_timeout': CONF.load_balancer.build_timeout