summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorCyril Roelandt <cyril@redhat.com>2021-10-26 15:53:35 +0200
committerCyril Roelandt <cyril@redhat.com>2021-10-26 15:53:51 +0200
commit43639e1118a757fd1a00d9ea999db43133c40763 (patch)
tree9db5316ea49bf29a3a5972dd26db6cb271b2854c /openstackclient
parent728401bbd76afc4d31b4f22e44bf98d1de40ef46 (diff)
downloadpython-openstackclient-43639e1118a757fd1a00d9ea999db43133c40763.tar.gz
Fix typos
Change-Id: Idd502c8df21da79ff3b9339870f38378f5337879
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/common/progressbar.py2
-rw-r--r--openstackclient/common/quota.py4
-rw-r--r--openstackclient/compute/v2/server.py4
-rw-r--r--openstackclient/identity/v3/endpoint_group.py2
-rw-r--r--openstackclient/tests/functional/base.py4
-rw-r--r--openstackclient/tests/functional/volume/v1/test_volume_type.py4
-rw-r--r--openstackclient/tests/functional/volume/v2/test_volume_type.py4
-rw-r--r--openstackclient/tests/functional/volume/v3/test_volume_type.py4
-rw-r--r--openstackclient/tests/unit/compute/v2/fakes.py4
-rw-r--r--openstackclient/volume/v1/volume_type.py2
-rw-r--r--openstackclient/volume/v2/volume_snapshot.py2
11 files changed, 18 insertions, 18 deletions
diff --git a/openstackclient/common/progressbar.py b/openstackclient/common/progressbar.py
index ef767a9c..7678aceb 100644
--- a/openstackclient/common/progressbar.py
+++ b/openstackclient/common/progressbar.py
@@ -17,7 +17,7 @@ import sys
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
a progress bar when the wrapped object are consumed.
diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py
index 643cb4e4..00bbc514 100644
--- a/openstackclient/common/quota.py
+++ b/openstackclient/common/quota.py
@@ -205,7 +205,7 @@ class BaseQuota(object):
class ListQuota(command.Lister, BaseQuota):
_description = _(
"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):
columns = (
@@ -230,7 +230,7 @@ class ListQuota(command.Lister, BaseQuota):
result = []
for resource, values in quotas.items():
# 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:
result.append({
'resource': resource,
diff --git a/openstackclient/compute/v2/server.py b/openstackclient/compute/v2/server.py
index c11f4b57..b0de65a7 100644
--- a/openstackclient/compute/v2/server.py
+++ b/openstackclient/compute/v2/server.py
@@ -2466,7 +2466,7 @@ class ListServer(command.Lister):
# and 'image' missing in the server response during
# infrastructure failure situations.
# 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'):
continue
if 'id' in s.image:
@@ -4292,7 +4292,7 @@ class ShelveServer(command.Command):
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
if not parsed_args.wait and not parsed_args.offload:
return
diff --git a/openstackclient/identity/v3/endpoint_group.py b/openstackclient/identity/v3/endpoint_group.py
index cbe27edb..9bb026a9 100644
--- a/openstackclient/identity/v3/endpoint_group.py
+++ b/openstackclient/identity/v3/endpoint_group.py
@@ -268,7 +268,7 @@ class SetEndpointGroup(command.Command, _FiltersReader):
parser.add_argument(
'--name',
metavar='<name>',
- help=_('New enpoint group name'),
+ help=_('New endpoint group name'),
)
parser.add_argument(
'--filters',
diff --git a/openstackclient/tests/functional/base.py b/openstackclient/tests/functional/base.py
index 0ed7dff8..3a4c1394 100644
--- a/openstackclient/tests/functional/base.py
+++ b/openstackclient/tests/functional/base.py
@@ -42,7 +42,7 @@ class TestCase(testtools.TestCase):
def openstack(cls, cmd, cloud=ADMIN_CLOUD, fail_ok=False):
"""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 continues to include the option '--os-auth-type none'
in the command while passing cloud='' omits the '--os-auth-type'
@@ -61,7 +61,7 @@ class TestCase(testtools.TestCase):
fail_ok=fail_ok
)
else:
- # Execure command with an explicit cloud specified
+ # Execute command with an explicit cloud specified
return execute(
'openstack --os-cloud=' + cloud + ' ' + cmd,
fail_ok=fail_ok
diff --git a/openstackclient/tests/functional/volume/v1/test_volume_type.py b/openstackclient/tests/functional/volume/v1/test_volume_type.py
index fb8dabdb..7434b5b3 100644
--- a/openstackclient/tests/functional/volume/v1/test_volume_type.py
+++ b/openstackclient/tests/functional/volume/v1/test_volume_type.py
@@ -118,10 +118,10 @@ class VolumeTypeTests(common.BaseVolumeTests):
raw_output = self.openstack(cmd)
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
# these to new test format when beef up all tests for
- # volume tye commands.
+ # volume type commands.
def test_encryption_type(self):
encryption_type = uuid.uuid4().hex
# test create new encryption type
diff --git a/openstackclient/tests/functional/volume/v2/test_volume_type.py b/openstackclient/tests/functional/volume/v2/test_volume_type.py
index 3f1a6ea8..861c393d 100644
--- a/openstackclient/tests/functional/volume/v2/test_volume_type.py
+++ b/openstackclient/tests/functional/volume/v2/test_volume_type.py
@@ -139,10 +139,10 @@ class VolumeTypeTests(common.BaseVolumeTests):
raw_output = self.openstack(cmd)
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
# these to new test format when beef up all tests for
- # volume tye commands.
+ # volume type commands.
def test_encryption_type(self):
name = uuid.uuid4().hex
encryption_type = uuid.uuid4().hex
diff --git a/openstackclient/tests/functional/volume/v3/test_volume_type.py b/openstackclient/tests/functional/volume/v3/test_volume_type.py
index 79d40969..165c625c 100644
--- a/openstackclient/tests/functional/volume/v3/test_volume_type.py
+++ b/openstackclient/tests/functional/volume/v3/test_volume_type.py
@@ -139,10 +139,10 @@ class VolumeTypeTests(common.BaseVolumeTests):
raw_output = self.openstack(cmd)
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
# these to new test format when beef up all tests for
- # volume tye commands.
+ # volume type commands.
def test_encryption_type(self):
name = uuid.uuid4().hex
encryption_type = uuid.uuid4().hex
diff --git a/openstackclient/tests/unit/compute/v2/fakes.py b/openstackclient/tests/unit/compute/v2/fakes.py
index 3142a244..fd0a5709 100644
--- a/openstackclient/tests/unit/compute/v2/fakes.py
+++ b/openstackclient/tests/unit/compute/v2/fakes.py
@@ -1285,7 +1285,7 @@ class FakeServerGroup(object):
class FakeServerGroupV264(object):
- """Fake one server group fo API >= 2.64"""
+ """Fake one server group for API >= 2.64"""
@staticmethod
def create_one_server_group(attrs=None):
@@ -1400,7 +1400,7 @@ class FakeQuota(object):
@staticmethod
def create_one_default_comp_quota(attrs=None):
- """Crate one quota"""
+ """Create one quota"""
attrs = attrs or {}
diff --git a/openstackclient/volume/v1/volume_type.py b/openstackclient/volume/v1/volume_type.py
index 4f015d13..c584943e 100644
--- a/openstackclient/volume/v1/volume_type.py
+++ b/openstackclient/volume/v1/volume_type.py
@@ -411,7 +411,7 @@ class UnsetVolumeType(command.Command):
"--encryption-type",
action="store_true",
help=_("Remove the encryption type for this volume type "
- "(admin oly)"),
+ "(admin only)"),
)
return parser
diff --git a/openstackclient/volume/v2/volume_snapshot.py b/openstackclient/volume/v2/volume_snapshot.py
index 656f59d4..53d8d27f 100644
--- a/openstackclient/volume/v2/volume_snapshot.py
+++ b/openstackclient/volume/v2/volume_snapshot.py
@@ -98,7 +98,7 @@ class CreateVolumeSnapshot(command.ShowOne):
"--remote-source",
metavar="<key=value>",
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 "
"attributes) e.g.: '--remote-source source-name=test_name "
"--remote-source source-id=test_id'"),