Fix typos
Change-Id: Idd502c8df21da79ff3b9339870f38378f5337879
This commit is contained in:
parent
728401bbd7
commit
43639e1118
@ -17,7 +17,7 @@ import sys
|
|||||||
|
|
||||||
|
|
||||||
class _ProgressBarBase(object):
|
class _ProgressBarBase(object):
|
||||||
"""A progress bar provider for a wrapped obect.
|
"""A progress bar provider for a wrapped object.
|
||||||
|
|
||||||
Base abstract class used by specific class wrapper to show
|
Base abstract class used by specific class wrapper to show
|
||||||
a progress bar when the wrapped object are consumed.
|
a progress bar when the wrapped object are consumed.
|
||||||
|
@ -205,7 +205,7 @@ class BaseQuota(object):
|
|||||||
class ListQuota(command.Lister, BaseQuota):
|
class ListQuota(command.Lister, BaseQuota):
|
||||||
_description = _(
|
_description = _(
|
||||||
"List quotas for all projects with non-default quota values or "
|
"List quotas for all projects with non-default quota values or "
|
||||||
"list detailed quota informations for requested project")
|
"list detailed quota information for requested project")
|
||||||
|
|
||||||
def _get_detailed_quotas(self, parsed_args):
|
def _get_detailed_quotas(self, parsed_args):
|
||||||
columns = (
|
columns = (
|
||||||
@ -230,7 +230,7 @@ class ListQuota(command.Lister, BaseQuota):
|
|||||||
result = []
|
result = []
|
||||||
for resource, values in quotas.items():
|
for resource, values in quotas.items():
|
||||||
# NOTE(slaweq): there is no detailed quotas info for some resources
|
# NOTE(slaweq): there is no detailed quotas info for some resources
|
||||||
# and it should't be displayed here
|
# and it shouldn't be displayed here
|
||||||
if type(values) is dict:
|
if type(values) is dict:
|
||||||
result.append({
|
result.append({
|
||||||
'resource': resource,
|
'resource': resource,
|
||||||
|
@ -2466,7 +2466,7 @@ class ListServer(command.Lister):
|
|||||||
# and 'image' missing in the server response during
|
# and 'image' missing in the server response during
|
||||||
# infrastructure failure situations.
|
# infrastructure failure situations.
|
||||||
# For those servers with partial constructs we just skip the
|
# For those servers with partial constructs we just skip the
|
||||||
# processing of the image and flavor informations.
|
# processing of the image and flavor information.
|
||||||
if not hasattr(s, 'image') or not hasattr(s, 'flavor'):
|
if not hasattr(s, 'image') or not hasattr(s, 'flavor'):
|
||||||
continue
|
continue
|
||||||
if 'id' in s.image:
|
if 'id' in s.image:
|
||||||
@ -4292,7 +4292,7 @@ class ShelveServer(command.Command):
|
|||||||
|
|
||||||
server_obj.shelve()
|
server_obj.shelve()
|
||||||
|
|
||||||
# if we don't hav to wait, either because it was requested explicitly
|
# if we don't have to wait, either because it was requested explicitly
|
||||||
# or is required implicitly, then our job is done
|
# or is required implicitly, then our job is done
|
||||||
if not parsed_args.wait and not parsed_args.offload:
|
if not parsed_args.wait and not parsed_args.offload:
|
||||||
return
|
return
|
||||||
|
@ -268,7 +268,7 @@ class SetEndpointGroup(command.Command, _FiltersReader):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--name',
|
'--name',
|
||||||
metavar='<name>',
|
metavar='<name>',
|
||||||
help=_('New enpoint group name'),
|
help=_('New endpoint group name'),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--filters',
|
'--filters',
|
||||||
|
@ -42,7 +42,7 @@ class TestCase(testtools.TestCase):
|
|||||||
def openstack(cls, cmd, cloud=ADMIN_CLOUD, fail_ok=False):
|
def openstack(cls, cmd, cloud=ADMIN_CLOUD, fail_ok=False):
|
||||||
"""Executes openstackclient command for the given action
|
"""Executes openstackclient command for the given action
|
||||||
|
|
||||||
NOTE(dtroyer): There is a subtle distinction between pasing
|
NOTE(dtroyer): There is a subtle distinction between passing
|
||||||
cloud=None and cloud='': for compatibility reasons passing
|
cloud=None and cloud='': for compatibility reasons passing
|
||||||
cloud=None continues to include the option '--os-auth-type none'
|
cloud=None continues to include the option '--os-auth-type none'
|
||||||
in the command while passing cloud='' omits the '--os-auth-type'
|
in the command while passing cloud='' omits the '--os-auth-type'
|
||||||
@ -61,7 +61,7 @@ class TestCase(testtools.TestCase):
|
|||||||
fail_ok=fail_ok
|
fail_ok=fail_ok
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# Execure command with an explicit cloud specified
|
# Execute command with an explicit cloud specified
|
||||||
return execute(
|
return execute(
|
||||||
'openstack --os-cloud=' + cloud + ' ' + cmd,
|
'openstack --os-cloud=' + cloud + ' ' + cmd,
|
||||||
fail_ok=fail_ok
|
fail_ok=fail_ok
|
||||||
|
@ -118,10 +118,10 @@ class VolumeTypeTests(common.BaseVolumeTests):
|
|||||||
raw_output = self.openstack(cmd)
|
raw_output = self.openstack(cmd)
|
||||||
self.assertOutput('', raw_output)
|
self.assertOutput('', raw_output)
|
||||||
|
|
||||||
# NOTE: Add some basic funtional tests with the old format to
|
# NOTE: Add some basic functional tests with the old format to
|
||||||
# make sure the command works properly, need to change
|
# make sure the command works properly, need to change
|
||||||
# these to new test format when beef up all tests for
|
# these to new test format when beef up all tests for
|
||||||
# volume tye commands.
|
# volume type commands.
|
||||||
def test_encryption_type(self):
|
def test_encryption_type(self):
|
||||||
encryption_type = uuid.uuid4().hex
|
encryption_type = uuid.uuid4().hex
|
||||||
# test create new encryption type
|
# test create new encryption type
|
||||||
|
@ -139,10 +139,10 @@ class VolumeTypeTests(common.BaseVolumeTests):
|
|||||||
raw_output = self.openstack(cmd)
|
raw_output = self.openstack(cmd)
|
||||||
self.assertOutput('', raw_output)
|
self.assertOutput('', raw_output)
|
||||||
|
|
||||||
# NOTE: Add some basic funtional tests with the old format to
|
# NOTE: Add some basic functional tests with the old format to
|
||||||
# make sure the command works properly, need to change
|
# make sure the command works properly, need to change
|
||||||
# these to new test format when beef up all tests for
|
# these to new test format when beef up all tests for
|
||||||
# volume tye commands.
|
# volume type commands.
|
||||||
def test_encryption_type(self):
|
def test_encryption_type(self):
|
||||||
name = uuid.uuid4().hex
|
name = uuid.uuid4().hex
|
||||||
encryption_type = uuid.uuid4().hex
|
encryption_type = uuid.uuid4().hex
|
||||||
|
@ -139,10 +139,10 @@ class VolumeTypeTests(common.BaseVolumeTests):
|
|||||||
raw_output = self.openstack(cmd)
|
raw_output = self.openstack(cmd)
|
||||||
self.assertOutput('', raw_output)
|
self.assertOutput('', raw_output)
|
||||||
|
|
||||||
# NOTE: Add some basic funtional tests with the old format to
|
# NOTE: Add some basic functional tests with the old format to
|
||||||
# make sure the command works properly, need to change
|
# make sure the command works properly, need to change
|
||||||
# these to new test format when beef up all tests for
|
# these to new test format when beef up all tests for
|
||||||
# volume tye commands.
|
# volume type commands.
|
||||||
def test_encryption_type(self):
|
def test_encryption_type(self):
|
||||||
name = uuid.uuid4().hex
|
name = uuid.uuid4().hex
|
||||||
encryption_type = uuid.uuid4().hex
|
encryption_type = uuid.uuid4().hex
|
||||||
|
@ -1285,7 +1285,7 @@ class FakeServerGroup(object):
|
|||||||
|
|
||||||
|
|
||||||
class FakeServerGroupV264(object):
|
class FakeServerGroupV264(object):
|
||||||
"""Fake one server group fo API >= 2.64"""
|
"""Fake one server group for API >= 2.64"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_one_server_group(attrs=None):
|
def create_one_server_group(attrs=None):
|
||||||
@ -1400,7 +1400,7 @@ class FakeQuota(object):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_one_default_comp_quota(attrs=None):
|
def create_one_default_comp_quota(attrs=None):
|
||||||
"""Crate one quota"""
|
"""Create one quota"""
|
||||||
|
|
||||||
attrs = attrs or {}
|
attrs = attrs or {}
|
||||||
|
|
||||||
|
@ -411,7 +411,7 @@ class UnsetVolumeType(command.Command):
|
|||||||
"--encryption-type",
|
"--encryption-type",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help=_("Remove the encryption type for this volume type "
|
help=_("Remove the encryption type for this volume type "
|
||||||
"(admin oly)"),
|
"(admin only)"),
|
||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ class CreateVolumeSnapshot(command.ShowOne):
|
|||||||
"--remote-source",
|
"--remote-source",
|
||||||
metavar="<key=value>",
|
metavar="<key=value>",
|
||||||
action=parseractions.KeyValueAction,
|
action=parseractions.KeyValueAction,
|
||||||
help=_("The attribute(s) of the exsiting remote volume snapshot "
|
help=_("The attribute(s) of the existing remote volume snapshot "
|
||||||
"(admin required) (repeat option to specify multiple "
|
"(admin required) (repeat option to specify multiple "
|
||||||
"attributes) e.g.: '--remote-source source-name=test_name "
|
"attributes) e.g.: '--remote-source source-name=test_name "
|
||||||
"--remote-source source-id=test_id'"),
|
"--remote-source source-id=test_id'"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user