Merge "Ensure KLB is updated"

This commit is contained in:
Zuul 2021-10-21 18:59:46 +00:00 committed by Gerrit Code Review
commit 4371b8aa84
1 changed files with 4 additions and 7 deletions

View File

@ -746,16 +746,13 @@ class LBaaSv2Driver(base.LBaaSDriver):
return result
def _ensure_loadbalancer(self, loadbalancer):
try:
result = self._create_loadbalancer(loadbalancer)
LOG.debug("Created %(obj)s", {'obj': result})
return result
except os_exc.HttpException as e:
if e.status_code not in OKAY_CODES:
raise
result = self._find_loadbalancer(loadbalancer)
if result:
LOG.debug("Found %(obj)s", {'obj': result})
return result
result = self._create_loadbalancer(loadbalancer)
LOG.debug("Created %(obj)s", {'obj': result})
return result
def _ensure_provisioned(self, loadbalancer, obj, create, find,