Fix KeyError in failover error log

Change-Id: I98f0b57845158590cce304509a905272b82e0333
This commit is contained in:
Lingxian Kong 2017-10-04 22:47:55 +13:00
parent c1a3c630af
commit 625a39a3ac
1 changed files with 1 additions and 1 deletions

View File

@ -708,7 +708,7 @@ class ControllerWorker(base_taskflow.BaseTaskFlowEngine):
except Exception as e:
with excutils.save_and_reraise_exception():
LOG.error("LB %(lbid)s failover exception: %(exc)s",
{'libid': load_balancer_id, 'exc': e})
{'lbid': load_balancer_id, 'exc': e})
self._lb_repo.update(
db_apis.get_session(), load_balancer_id,
provisioning_status=constants.ERROR)