Fixed misspellings of common words

Fixed misspelling of common words found by the 'misspellings' tool.

Change-Id: I8e03379f92b62fd4856bbc74b7e4641226a403d3
Closes-Bug: #1257531
This commit is contained in:
Sushil Kumar 2014-01-10 11:22:12 +00:00
parent 1a704bef55
commit d56111cb07
9 changed files with 15 additions and 15 deletions

@ -35,7 +35,7 @@ from troveclient.compat import common
class InstanceCommands(common.AuthedCommandsBase):
"""Commands to perform various instances operations and actions"""
"""Commands to perform various instance operations and actions"""
params = [
'flavor',

@ -365,7 +365,7 @@ class Auth(CommandsBase):
self.token = self.dbaas.client.auth_token
self.service_url = self.dbaas.client.service_url
CliOptions.save_from_instance_fields(self)
print("Token aquired! Saving to %s..." % CliOptions.APITOKEN)
print("Token acquired! Saving to %s..." % CliOptions.APITOKEN)
print(" service_url = %s" % self.service_url)
print(" token = %s" % self.token)
except Exception:
@ -375,7 +375,7 @@ class Auth(CommandsBase):
class AuthedCommandsBase(CommandsBase):
"""Commands that work only with an authicated client."""
"""Commands that work only with an authenticated client."""
def __init__(self, parser):
"""Makes sure a token is available somehow and logs in."""

@ -330,7 +330,7 @@ class ServiceCatalogTest(testtools.TestCase):
self.case_no_endpoint_match(scObj)
# case for empty service catalog
self.case_endpoing_with_empty_catalog(scObj)
self.case_endpoint_with_empty_catalog(scObj)
# more than one matching endpoints
self.case_ambiguous_endpoint(scObj)
@ -368,9 +368,9 @@ class ServiceCatalogTest(testtools.TestCase):
self.assertRaises(exceptions.EndpointNotFound, scObj._url_for,
attr="test_attr", filter_value=filter_value)
def case_endpoing_with_empty_catalog(self, scObj):
# first, test with empty catalog, this should pass since
# there is already enpoint added
def case_endpoint_with_empty_catalog(self, scObj):
# First, test with an empty catalog. This should pass since
# there is already an endpoint added.
scObj.catalog[scObj.root_key]['serviceCatalog'] = list()
endpoint = scObj.catalog['endpoints'][0]

@ -254,7 +254,7 @@ def populate_element_from_dict(element, dict):
def modify_response_types(value, type_translator):
"""
This will convert some string in response dictionary to ints or bool
so that our respose is compatible with code expecting JSON style responses
so that our response is compatible with code expecting JSON style responses
"""
if isinstance(value, str):
if value == 'True':

@ -164,7 +164,7 @@ _code_map = dict((c.http_status, c) for c in [BadRequest, Unauthorized,
def from_response(response, body):
"""
Return an instance of an ClientException or subclass
based on an request's response.
based on a request's response.
Usage::

@ -320,7 +320,7 @@ class OpenStackTroveShell(object):
def _find_actions(self, subparsers, actions_module):
for attr in (a for a in dir(actions_module) if a.startswith('do_')):
# I prefer to be hypen-separated instead of underscores.
# I prefer to be hyphen-separated instead of underscores.
command = attr[3:].replace('_', '-')
callback = getattr(actions_module, attr)
desc = callback.__doc__ or ''

@ -59,7 +59,7 @@ def add_arg(f, *args, **kwargs):
# NOTE(sirp): avoid dups that can occur when the module is shared across
# tests.
if (args, kwargs) not in f.arguments:
# Because of the sematics of decorator composition if we just append
# Because of the semantics of decorator composition if we just append
# to the options list positional options will appear to be backwards.
f.arguments.insert(0, (args, kwargs))

@ -31,7 +31,7 @@ class Root(base.ManagerWithFind):
def create(self, instance_id):
"""
Enable the root user and return the root password for the
sepcified db instance
specified db instance
"""
resp, body = self.api.client.post(self.url % instance_id)
common.check_for_exceptions(resp, body)

@ -385,7 +385,7 @@ def do_user_delete(cs, args):
@utils.arg('--host', metavar='<host>', default=None,
help='Optional host of user')
@utils.service_type('database')
# Quoting is not working now that we arent using httplib2
# Quoting is not working now that we aren't using httplib2
# anymore and instead are using requests
def do_user_show(cs, args):
"""Gets a user from the instance."""
@ -398,7 +398,7 @@ def do_user_show(cs, args):
@utils.arg('--host', metavar='<host>', default=None,
help='Optional host of user')
@utils.service_type('database')
# Quoting is not working now that we arent using httplib2
# Quoting is not working now that we aren't using httplib2
# anymore and instead are using requests
def do_user_show_access(cs, args):
"""Gets a users access from the instance."""
@ -417,7 +417,7 @@ def do_user_show_access(cs, args):
@utils.arg('--new_host', metavar='<new_host>', default=None,
help='Optional new host of user')
@utils.service_type('database')
# Quoting is not working now that we arent using httplib2
# Quoting is not working now that we aren't using httplib2
# anymore and instead are using requests
def do_user_update_attributes(cs, args):
"""Updates a users attributes from the instance."""