Fix typos in docstrings and comments

Change-Id: Ib94c2b999f8295ec526d4e44883b86ab8b5a0688
This commit is contained in:
Dao Cong Tien 2016-04-06 09:34:00 +07:00
parent 41fccc3828
commit a967e40185
4 changed files with 11 additions and 11 deletions

View File

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

View File

@ -729,7 +729,7 @@ class OpenStackComputeShell(object):
do_help = ('help' in argv) or (
'--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 (
'bash-completion' in argv)
@ -938,7 +938,7 @@ class OpenStackComputeShell(object):
if utils.isunauthenticated(args.func):
# NOTE(alex_xu): We need authentication for discover microversion.
# 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_auth = None

View File

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

View File

@ -1462,7 +1462,7 @@ def do_image_delete(cs, args):
metavar='<changes_since>',
default=None,
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 ."))
def do_list(cs, args):
"""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
# 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
# .get() to get all informations.
# .get() to get all information.
if not server:
server = _find_server(cs, args.server)
@ -4199,7 +4199,7 @@ def _quota_update(manager, identifier, args):
if updates:
# 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)
user_id = getattr(args, 'user', None)
if isinstance(manager, quotas.QuotaSetManager):