From 43639e1118a757fd1a00d9ea999db43133c40763 Mon Sep 17 00:00:00 2001
From: Cyril Roelandt <cyril@redhat.com>
Date: Tue, 26 Oct 2021 15:53:35 +0200
Subject: [PATCH] Fix typos

Change-Id: Idd502c8df21da79ff3b9339870f38378f5337879
---
 openstackclient/common/progressbar.py                         | 2 +-
 openstackclient/common/quota.py                               | 4 ++--
 openstackclient/compute/v2/server.py                          | 4 ++--
 openstackclient/identity/v3/endpoint_group.py                 | 2 +-
 openstackclient/tests/functional/base.py                      | 4 ++--
 .../tests/functional/volume/v1/test_volume_type.py            | 4 ++--
 .../tests/functional/volume/v2/test_volume_type.py            | 4 ++--
 .../tests/functional/volume/v3/test_volume_type.py            | 4 ++--
 openstackclient/tests/unit/compute/v2/fakes.py                | 4 ++--
 openstackclient/volume/v1/volume_type.py                      | 2 +-
 openstackclient/volume/v2/volume_snapshot.py                  | 2 +-
 11 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/openstackclient/common/progressbar.py b/openstackclient/common/progressbar.py
index ef767a9cf8..7678aceba0 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 643cb4e474..00bbc51459 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 c11f4b5781..b0de65a7c3 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 cbe27edb4b..9bb026a9b8 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 0ed7dff8c4..3a4c13944e 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 fb8dabdb04..7434b5b36b 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 3f1a6ea8a5..861c393d80 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 79d4096998..165c625c20 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 3142a24489..fd0a570969 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 4f015d13f6..c584943e10 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 656f59d4ac..53d8d27fed 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'"),