Fix typos
Change-Id: Iccf09ae6010828b351a56a0ef52517a0e7d24d9c
This commit is contained in:
parent
397585792c
commit
4774c005ca
@ -350,7 +350,7 @@ class HaproxyNSDriver(driver_base.LoadBalancerBaseDriver):
|
||||
if ip_lib.device_exists(device.name):
|
||||
self.vif_driver.unplug(device.name, namespace=namespace)
|
||||
except RuntimeError as re:
|
||||
LOG.warn(_LW('An error happend on namespace cleanup: '
|
||||
LOG.warn(_LW('An error happened on namespace cleanup: '
|
||||
'%s') % re.message)
|
||||
ns.garbage_collect_namespace()
|
||||
|
||||
|
@ -70,12 +70,12 @@ class RadwareLBaaSV2Driver(base_v2_driver.RadwareLBaaSBaseV2Driver):
|
||||
#
|
||||
# Assumptions:
|
||||
# 1) We have only one worflow that takes care of l2-l4 and service creation
|
||||
# 2) The workflow template exsists on the vDirect server
|
||||
# 2) The workflow template exists on the vDirect server
|
||||
# 3) The workflow expose one operaion named 'update' (plus ctor and dtor)
|
||||
# 4) The 'update' operation gets the loadbalancer object graph as input
|
||||
# 5) The object graph is enehanced by our code before it is sent to the
|
||||
# workflow
|
||||
# 6) Async operations are handled by a diffrent thread
|
||||
# 6) Async operations are handled by a different thread
|
||||
#
|
||||
def __init__(self, plugin):
|
||||
super(RadwareLBaaSV2Driver, self).__init__(plugin)
|
||||
@ -234,7 +234,7 @@ class RadwareLBaaSV2Driver(base_v2_driver.RadwareLBaaSBaseV2Driver):
|
||||
# is necessary.
|
||||
# Get subnet id of any member located on different than
|
||||
# loadbalancer's network. If returned subnet id is the subnet id
|
||||
# of loadbalancer - all members are accesssible from loadbalancer's
|
||||
# of loadbalancer - all members are accessible from loadbalancer's
|
||||
# network, meaning no second leg or static routes are required.
|
||||
# Otherwise, create proxy port on found member's subnet and get its
|
||||
# address as a proxy address for loadbalancer instance
|
||||
|
@ -102,7 +102,7 @@ class Accounts(cred_provider.CredentialProvider):
|
||||
if resource == 'network':
|
||||
hash_dict['networks'][temp_hash_key] = resources[resource]
|
||||
else:
|
||||
LOG.warning('Unkown resource type %s, ignoring this field'
|
||||
LOG.warning('Unknown resource type %s, ignoring this field'
|
||||
% resource)
|
||||
return hash_dict
|
||||
|
||||
|
@ -248,7 +248,7 @@ class VerifiedHTTPSConnection(httplib.HTTPSConnection):
|
||||
@staticmethod
|
||||
def host_matches_cert(host, x509):
|
||||
"""
|
||||
Verify that the the x509 certificate we have received
|
||||
Verify that the x509 certificate we have received
|
||||
from 'host' correctly identifies the server we are
|
||||
connecting to, ie that the certificate's Common Name
|
||||
or a Subject Alternative Name matches 'host'.
|
||||
|
@ -74,7 +74,7 @@ class Client(object):
|
||||
look_for_keys=self.look_for_keys,
|
||||
key_filename=self.key_filename,
|
||||
timeout=self.channel_timeout, pkey=self.pkey)
|
||||
LOG.info("ssh connection to %s@%s successfuly created",
|
||||
LOG.info("ssh connection to %s@%s successfully created",
|
||||
self.username, self.host)
|
||||
return ssh
|
||||
except (socket.error,
|
||||
|
@ -50,7 +50,7 @@ def wait_for_server_status(client, server_id, status, ready_wait=True,
|
||||
return
|
||||
# NOTE(afazekas): The instance is in "ready for action state"
|
||||
# when no task in progress
|
||||
# NOTE(afazekas): Converted to string bacuse of the XML
|
||||
# NOTE(afazekas): Converted to string because of the XML
|
||||
# responses
|
||||
if str(task_state) == "None":
|
||||
# without state api extension 3 sec usually enough
|
||||
|
@ -131,7 +131,7 @@ def services(*args, **kwargs):
|
||||
def stresstest(*args, **kwargs):
|
||||
"""Add stress test decorator
|
||||
|
||||
For all functions with this decorator a attr stress will be
|
||||
For all functions with this decorator an attr stress will be
|
||||
set automatically.
|
||||
|
||||
@param class_setup_per: allowed values are application, process, action
|
||||
|
@ -159,7 +159,7 @@ class LoadBalancersTestJSON(base.BaseTestCase):
|
||||
|
||||
@test.attr(type='smoke')
|
||||
def test_create_load_balancer_empty_name(self):
|
||||
"""Test create load balancer with a empty name field"""
|
||||
"""Test create load balancer with an empty name field"""
|
||||
load_balancer = self.load_balancers_client.create_load_balancer(
|
||||
vip_subnet_id=self.subnet['id'], name="")
|
||||
self.assertEqual(load_balancer.get('name'), "")
|
||||
|
Loading…
Reference in New Issue
Block a user