Fix 'load banlancer' in i18n strings

Change-Id: I077b554986ca4dcee376a7d19430603c89f940e8
Partial-Bug: #1592280
This commit is contained in:
Lu lei 2016-08-31 10:25:23 +08:00
parent e14a174293
commit 310cd76756
3 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ class LoadBalancerDriver(base.DriverBase):
res = self._wait_for_lb_ready(lb.id)
if res is False:
msg = _LE('Failed in creating load balancer (%s).') % lb.id
msg = _LE('Failed in creating loadbalancer (%s).') % lb.id
del result['vip_address']
_cleanup(msg, **result)
return False, msg

View File

@ -216,7 +216,7 @@ class LoadBalancingPolicy(base.Policy):
_('Health monitor for loadbalancer.'),
schema={
HM_TYPE: schema.String(
_('The type of probe sent by the load balancer to verify '
_('The type of probe sent by the loadbalancer to verify '
'the member state.'),
constraints=[
constraints.AllowedValues(HEALTH_MONITOR_TYPES),

View File

@ -187,7 +187,7 @@ class TestNeutronLBaaSDriver(base.SenlinTestCase):
status, res = self.lb_driver.lb_create(self.vip, self.pool, self.hm)
self.assertFalse(status)
msg = _('Failed in creating load balancer (%s).') % 'LB_ID'
msg = _('Failed in creating loadbalancer (%s).') % 'LB_ID'
self.assertEqual(msg, res)
self.nc.loadbalancer_create.assert_called_once_with(
'SUBNET_ID', self.vip['address'], self.vip['admin_state_up'])