From 9bb0fcd05e582620360844028972d649e16601bb Mon Sep 17 00:00:00 2001 From: Sharpz7 Date: Mon, 29 Jan 2024 23:22:19 +0000 Subject: [PATCH] [codespell] Fixing Spelling Mistakes This is the first in a series of commits to add support for codespell. This is continuning the process completed in ironic-python-agent. Future Commits will add a Tox Target, CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame. Change-Id: Iab417bfd09cb0bf416982733933c29e49e3229eb --- ironicclient/common/http.py | 2 +- ironicclient/osc/plugin.py | 2 +- ironicclient/osc/v1/baremetal_node.py | 7 ++++--- ironicclient/shell.py | 2 +- ironicclient/tests/unit/common/apiclient/test_base.py | 2 +- ironicclient/tests/unit/test_client.py | 2 +- ironicclient/v1/client.py | 2 +- ironicclient/v1/node.py | 2 +- .../notes/accept-valid_interfaces-3b8f5e3e362e04cd.yaml | 2 +- .../notes/add-bios-registry-in-list-21974873f146aff7.yaml | 2 +- .../address-cross-distro-iso-tools-006711c9f150037a.yaml | 2 +- .../allow-api-user-to-use-latest-6b80e9f584eaaa4e.yaml | 2 +- .../notes/provision-state-adopt-d07b838813cecfb1.yaml | 2 +- 13 files changed, 16 insertions(+), 15 deletions(-) diff --git a/ironicclient/common/http.py b/ironicclient/common/http.py index e578c992e..928dbd90a 100644 --- a/ironicclient/common/http.py +++ b/ironicclient/common/http.py @@ -206,7 +206,7 @@ class VersionNegotiationMixin(object): raise ValueError(textwrap.fill( _("The 'latest' API version can not be requested " "in a list of versions. Please explicitly request " - "'latest' or request only versios between " + "'latest' or request only versions between " "%(min)s to %(max)s") % {'min': min_ver, 'max': max_ver})) diff --git a/ironicclient/osc/plugin.py b/ironicclient/osc/plugin.py index 1747eeaf2..09f3d78c6 100644 --- a/ironicclient/osc/plugin.py +++ b/ironicclient/osc/plugin.py @@ -29,7 +29,7 @@ CLIENT_CLASS = 'ironicclient.v1.client.Client' API_VERSION_OPTION = 'os_baremetal_api_version' API_NAME = 'baremetal' # NOTE(TheJulia) Latest known version tracking has been moved -# to the ironicclient/common/http.py file as the OSC committment +# to the ironicclient/common/http.py file as the OSC commitment # is latest known, and we should only store it in one location. LAST_KNOWN_API_VERSION = http.LAST_KNOWN_API_VERSION LATEST_VERSION = http.LATEST_VERSION diff --git a/ironicclient/osc/v1/baremetal_node.py b/ironicclient/osc/v1/baremetal_node.py index 7cc36dd80..3257fc049 100755 --- a/ironicclient/osc/v1/baremetal_node.py +++ b/ironicclient/osc/v1/baremetal_node.py @@ -1675,14 +1675,15 @@ class UnsetBaremetalNode(command.Command): metavar="", action='append', help=_('Driver information to unset on this baremetal node ' - '(repeat option to unset multiple driver informations)'), + '(repeat option to unset multiple items ' + 'in driver information)'), ) parser.add_argument( "--instance-info", metavar="", action='append', help=_('Instance information to unset on this baremetal node ' - '(repeat option to unset multiple instance informations)'), + '(repeat option to unset multiple instance information)'), ) parser.add_argument( "--chassis-uuid", @@ -2356,7 +2357,7 @@ class NodeInventorySave(command.Command): class NodeChildrenList(command.ShowOne): - """Get a list of nodes assocated as children.""" + """Get a list of nodes associated as children.""" log = logging.getLogger(__name__ + ".NodeChildrenList") diff --git a/ironicclient/shell.py b/ironicclient/shell.py index 37892c5a1..1213aebe6 100644 --- a/ironicclient/shell.py +++ b/ironicclient/shell.py @@ -120,7 +120,7 @@ class CommandManager(commandmanager.CommandManager): super(CommandManager, self).load_commands(namespace) if ironic_inspector_client is not None: super(CommandManager, self).load_commands(_INSPECTOR_NAMESPACE) - # Stip the 'baremetal' prefix used in OSC + # Strip the 'baremetal' prefix used in OSC prefix = 'baremetal ' prefix_len = len(prefix) self.commands = dict( diff --git a/ironicclient/tests/unit/common/apiclient/test_base.py b/ironicclient/tests/unit/common/apiclient/test_base.py index 89651a4db..cac9d1538 100644 --- a/ironicclient/tests/unit/common/apiclient/test_base.py +++ b/ironicclient/tests/unit/common/apiclient/test_base.py @@ -93,7 +93,7 @@ class ResourceTest(test_base.BaseTestCase): self.assertEqual(r1, r2) def test_two_resources_with_diff_type_are_not_equal(self): - # Two resoruces of different types: never equal + # Two resources of different types: never equal r1 = base.Resource(None, {'id': 1}) r2 = HumanResource(None, {'id': 1}) self.assertNotEqual(r1, r2) diff --git a/ironicclient/tests/unit/test_client.py b/ironicclient/tests/unit/test_client.py index fb9756fcc..3eaf23010 100644 --- a/ironicclient/tests/unit/test_client.py +++ b/ironicclient/tests/unit/test_client.py @@ -53,7 +53,7 @@ class ClientTest(utils.BaseTestCase): self.assertEqual([get_endpoint_call], session.get_endpoint.call_args_list) else: - # we use adaper.get_endpoint instead of session.get_endpoint + # we use adapter.get_endpoint instead of session.get_endpoint self.assertFalse(session.get_endpoint.called) if expected_version is not None: # NOTE(TheJulia): This does not test the negotiation logic diff --git a/ironicclient/v1/client.py b/ironicclient/v1/client.py index 254185eb7..d5e4cfe6a 100644 --- a/ironicclient/v1/client.py +++ b/ironicclient/v1/client.py @@ -117,7 +117,7 @@ class Client(object): @property def is_api_version_negotiated(self): - """Returns True if microversion negotiation has occured.""" + """Returns True if microversion negotiation has occurred.""" return self.http_client.api_version_select_state == 'negotiated' def negotiate_api_version(self): diff --git a/ironicclient/v1/node.py b/ironicclient/v1/node.py index 0813aeb54..0e80fa7ae 100644 --- a/ironicclient/v1/node.py +++ b/ironicclient/v1/node.py @@ -137,7 +137,7 @@ class NodeManager(base.CreateManager): with a non-null node.shard value, when false get only nodes with a null node.shard value. None is a noop. with a non-null node.shard value. - :param parent_node: Optional. String value used to retreive child + :param parent_node: Optional. String value used to retrieve child nodes with the supplied parent node. :param include_children: Optional. Boolean Value, only True is valid. Tells the ironic API to enumerate all child diff --git a/releasenotes/notes/accept-valid_interfaces-3b8f5e3e362e04cd.yaml b/releasenotes/notes/accept-valid_interfaces-3b8f5e3e362e04cd.yaml index 87814f560..2fefa074c 100644 --- a/releasenotes/notes/accept-valid_interfaces-3b8f5e3e362e04cd.yaml +++ b/releasenotes/notes/accept-valid_interfaces-3b8f5e3e362e04cd.yaml @@ -3,7 +3,7 @@ features: - | The consumer of ironicclient may be deriving their ``get_client`` kwargs from config inherited from ksa, where the ``interface`` option has been - deprecated in favor of ``valid_interfaces``. To accomodate this, we now + deprecated in favor of ``valid_interfaces``. To accommodate this, we now accept ``valid_interfaces`` as a kwarg, giving it precedence over ``interface``. However, we still accept ``interface``, as the consumer may be deriving kwargs from a non-conf source (such as an already-created ksa diff --git a/releasenotes/notes/add-bios-registry-in-list-21974873f146aff7.yaml b/releasenotes/notes/add-bios-registry-in-list-21974873f146aff7.yaml index 6f79445c5..713b9d0e4 100644 --- a/releasenotes/notes/add-bios-registry-in-list-21974873f146aff7.yaml +++ b/releasenotes/notes/add-bios-registry-in-list-21974873f146aff7.yaml @@ -3,6 +3,6 @@ features: - | Adds new params to the ``baremetal node bios setting list`` command to include support for the BIOS registry. The ``--long`` option will - retrieve and display the additonal BIOS registry fields, the ``--fields`` + retrieve and display the additional BIOS registry fields, the ``--fields`` option will retrieve and display selected fields. The ``baremetal node bios setting show`` includes these fields by default with no changes. diff --git a/releasenotes/notes/address-cross-distro-iso-tools-006711c9f150037a.yaml b/releasenotes/notes/address-cross-distro-iso-tools-006711c9f150037a.yaml index 68ae7674c..169a1876d 100644 --- a/releasenotes/notes/address-cross-distro-iso-tools-006711c9f150037a.yaml +++ b/releasenotes/notes/address-cross-distro-iso-tools-006711c9f150037a.yaml @@ -2,6 +2,6 @@ fixes: - | Embedded configuration drive generation support has been updated to - support ``mkisofs`` and ``xorrisofs`` in adition to the previously + support ``mkisofs`` and ``xorrisofs`` in addition to the previously supported ``genisoimage`` utility. This is as distributions such as Debian and OpenSUSE do not ship ``genisoimage``. diff --git a/releasenotes/notes/allow-api-user-to-use-latest-6b80e9f584eaaa4e.yaml b/releasenotes/notes/allow-api-user-to-use-latest-6b80e9f584eaaa4e.yaml index a180e9c73..467d8bc34 100644 --- a/releasenotes/notes/allow-api-user-to-use-latest-6b80e9f584eaaa4e.yaml +++ b/releasenotes/notes/allow-api-user-to-use-latest-6b80e9f584eaaa4e.yaml @@ -8,7 +8,7 @@ features: - | Adds base client properties to provide insight to a python API user of what the current REST API version that will be utilized, and if API - version negotiation has occured. + version negotiation has occurred. These new properties are ``client.current_api_version`` and ``client.is_api_version_negotiated`` respectively. - | diff --git a/releasenotes/notes/provision-state-adopt-d07b838813cecfb1.yaml b/releasenotes/notes/provision-state-adopt-d07b838813cecfb1.yaml index 9fb848b90..a4f6c1f35 100644 --- a/releasenotes/notes/provision-state-adopt-d07b838813cecfb1.yaml +++ b/releasenotes/notes/provision-state-adopt-d07b838813cecfb1.yaml @@ -2,5 +2,5 @@ features: - Support has been added for the node-set-provision-state verb ``adopt`` which requires API version 1.17. This feature allows - an operator move a node from ``MANAGABLE`` state to ``ACTIVE`` + an operator move a node from ``MANAGEABLE`` state to ``ACTIVE`` state without performing cleaning or a deployment operation.