diff --git a/vmware_nsx/services/lbaas/nsx_v/v2/pool_mgr.py b/vmware_nsx/services/lbaas/nsx_v/v2/pool_mgr.py index 9a9f3898f3..02ead80bb7 100644 --- a/vmware_nsx/services/lbaas/nsx_v/v2/pool_mgr.py +++ b/vmware_nsx/services/lbaas/nsx_v/v2/pool_mgr.py @@ -77,7 +77,7 @@ class EdgePoolManager(base_mgr.EdgeLoadbalancerBaseManager): except nsxv_exc.VcnsApiException: with excutils.save_and_reraise_exception(): self.lbv2_driver.pool.failed_completion(context, pool) - LOG.error(_LE('Failed to create pool %s'), pool['id']) + LOG.error(_LE('Failed to create pool %s'), pool.id) @log_helpers.log_method_call def update(self, context, old_pool, new_pool): @@ -113,7 +113,7 @@ class EdgePoolManager(base_mgr.EdgeLoadbalancerBaseManager): except nsxv_exc.VcnsApiException: with excutils.save_and_reraise_exception(): self.lbv2_driver.pool.failed_completion(context, new_pool) - LOG.error(_LE('Failed to update pool %s'), new_pool['id']) + LOG.error(_LE('Failed to update pool %s'), new_pool.id) @log_helpers.log_method_call def delete(self, context, pool): @@ -147,4 +147,4 @@ class EdgePoolManager(base_mgr.EdgeLoadbalancerBaseManager): context.session, lb_id, pool.id) except nsxv_exc.VcnsApiException: self.lbv2_driver.pool.failed_completion(context, pool) - LOG.error(_LE('Failed to delete pool %s'), pool['id']) + LOG.error(_LE('Failed to delete pool %s'), pool.id)