From aa4b1c594688541709b3868868524d49d4002b45 Mon Sep 17 00:00:00 2001 From: Nachi Ueno Date: Tue, 3 Dec 2013 10:43:23 -0800 Subject: [PATCH] Fix misspells Change-Id: I8be38727ca55ebbead9032cf69f10a1006fd004b Closes-bug:1257424 --- neutron/db/loadbalancer/loadbalancer_db.py | 2 +- neutron/services/loadbalancer/drivers/abstract_driver.py | 2 +- neutron/services/loadbalancer/drivers/radware/driver.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/neutron/db/loadbalancer/loadbalancer_db.py b/neutron/db/loadbalancer/loadbalancer_db.py index 18e8d39f3..5968c9a7c 100644 --- a/neutron/db/loadbalancer/loadbalancer_db.py +++ b/neutron/db/loadbalancer/loadbalancer_db.py @@ -746,7 +746,7 @@ class LoadBalancerPluginDb(LoadBalancerPluginBase, v = health_monitor['health_monitor'] tenant_id = self._get_tenant_id_for_create(context, v) with context.session.begin(subtransactions=True): - # setting ACTIVE status sinse healthmon is shared DB object + # setting ACTIVE status since healthmon is shared DB object monitor_db = HealthMonitor(id=uuidutils.generate_uuid(), tenant_id=tenant_id, type=v['type'], diff --git a/neutron/services/loadbalancer/drivers/abstract_driver.py b/neutron/services/loadbalancer/drivers/abstract_driver.py index b3519bffe..5659c3e4b 100644 --- a/neutron/services/loadbalancer/drivers/abstract_driver.py +++ b/neutron/services/loadbalancer/drivers/abstract_driver.py @@ -52,7 +52,7 @@ class LoadBalancerAbstractDriver(object): def delete_vip(self, context, vip): """A real driver would invoke a call to his backend and try to delete the Vip. - if the deletion was successfull, delete the record from the database. + if the deletion was successful, delete the record from the database. if the deletion has failed, set the Vip status to ERROR. """ pass diff --git a/neutron/services/loadbalancer/drivers/radware/driver.py b/neutron/services/loadbalancer/drivers/radware/driver.py index ad816374e..b76a74c14 100644 --- a/neutron/services/loadbalancer/drivers/radware/driver.py +++ b/neutron/services/loadbalancer/drivers/radware/driver.py @@ -402,7 +402,7 @@ class LoadBalancerDriver(abstract_driver.LoadBalancerAbstractDriver): def _get_service(self, pool_id, network_id): """Get a service name. - if you cant find one, + if you can't find one, create a service and create l2_l2 WF. """ @@ -468,7 +468,7 @@ class LoadBalancerDriver(abstract_driver.LoadBalancerAbstractDriver): def _create_workflow(self, wf_name, wf_template_name, create_workflow_params=None): - """Create a WF if it doesnt exists yet.""" + """Create a WF if it doesn't exists yet.""" if not self.workflow_templates_exists: self._verify_workflow_templates() if not self._workflow_exists(wf_name): @@ -484,7 +484,7 @@ class LoadBalancerDriver(abstract_driver.LoadBalancerAbstractDriver): LOG.debug(_('create_workflow response: %s'), str(response)) def _verify_workflow_templates(self): - """Verify the existance of workflows on vDirect server.""" + """Verify the existence of workflows on vDirect server.""" workflows = {self.l2_l3_wf_name: False, self.l4_wf_name: False} resource = '/api/workflowTemplate'