Merge "Fix typos in docstrings and comments"

This commit is contained in:
Jenkins 2016-04-07 13:18:42 +00:00 committed by Gerrit Code Review
commit 85eb9f7236
4 changed files with 11 additions and 11 deletions

@ -49,11 +49,11 @@ class APIVersion(object):
def __init__(self, version_str=None): def __init__(self, version_str=None):
"""Create an API version object. """Create an API version object.
:param version_string: String representation of APIVersionRequest. :param version_str: String representation of APIVersionRequest.
Correct format is 'X.Y', where 'X' and 'Y' Correct format is 'X.Y', where 'X' and 'Y'
are int values. None value should be used are int values. None value should be used
to create Null APIVersionRequest, which is to create Null APIVersionRequest, which is
equal to 0.0 equal to 0.0
""" """
self.ver_major = 0 self.ver_major = 0
self.ver_minor = 0 self.ver_minor = 0

@ -729,7 +729,7 @@ class OpenStackComputeShell(object):
do_help = ('help' in argv) or ( do_help = ('help' in argv) or (
'--help' in argv) or ('-h' in argv) or not argv '--help' in argv) or ('-h' in argv) or not argv
# bash-completion should not require authentification # bash-completion should not require authentication
skip_auth = do_help or ( skip_auth = do_help or (
'bash-completion' in argv) 'bash-completion' in argv)
@ -938,7 +938,7 @@ class OpenStackComputeShell(object):
if utils.isunauthenticated(args.func): if utils.isunauthenticated(args.func):
# NOTE(alex_xu): We need authentication for discover microversion. # NOTE(alex_xu): We need authentication for discover microversion.
# But the subcommands may needn't it. If the subcommand needn't, # But the subcommands may needn't it. If the subcommand needn't,
# we clear the session arguements. # we clear the session arguments.
keystone_session = None keystone_session = None
keystone_auth = None keystone_auth = None

@ -80,7 +80,7 @@ class Client(object):
:param str proxy_token: Proxy Token :param str proxy_token: Proxy Token
:param str region_name: Region Name :param str region_name: Region Name
:param str endpoint_type: Endpoint Type :param str endpoint_type: Endpoint Type
:param str extensions: Exensions :param str extensions: Extensions
:param str service_type: Service Type :param str service_type: Service Type
:param str service_name: Service Name :param str service_name: Service Name
:param str volume_service_name: Volume Service Name :param str volume_service_name: Volume Service Name

@ -1462,7 +1462,7 @@ def do_image_delete(cs, args):
metavar='<changes_since>', metavar='<changes_since>',
default=None, default=None,
help=_("List only servers changed after a certain point of time." help=_("List only servers changed after a certain point of time."
"The provided time should be an ISO 8061 formated time." "The provided time should be an ISO 8061 formatted time."
"ex 2016-03-04T06:27:59Z .")) "ex 2016-03-04T06:27:59Z ."))
def do_list(cs, args): def do_list(cs, args):
"""List active servers.""" """List active servers."""
@ -2064,7 +2064,7 @@ def _print_server(cs, args, server=None):
# findall(name=blah) and due a REST /details which is not the same # findall(name=blah) and due a REST /details which is not the same
# as a .get() and doesn't get the information about flavors and # as a .get() and doesn't get the information about flavors and
# images. This fix it as we redo the call with the id which does a # images. This fix it as we redo the call with the id which does a
# .get() to get all informations. # .get() to get all information.
if not server: if not server:
server = _find_server(cs, args.server) server = _find_server(cs, args.server)
@ -4199,7 +4199,7 @@ def _quota_update(manager, identifier, args):
if updates: if updates:
# default value of force is None to make sure this client # default value of force is None to make sure this client
# will be compatibile with old nova server # will be compatible with old nova server
force_update = getattr(args, 'force', None) force_update = getattr(args, 'force', None)
user_id = getattr(args, 'user', None) user_id = getattr(args, 'user', None)
if isinstance(manager, quotas.QuotaSetManager): if isinstance(manager, quotas.QuotaSetManager):