[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: I305a44beb929495f4b67a5e94b0387647814db1e
This commit is contained in:
Sharpz7 2024-01-26 05:06:25 +00:00
parent 80fd7a3e62
commit a7f9492372
15 changed files with 20 additions and 20 deletions

View File

@ -68,7 +68,7 @@ dynamic way. To run it do
# Or, running with custom parameters # Or, running with custom parameters
sushy-emulator --port 8000 --libvirt-uri "qemu:///system" sushy-emulator --port 8000 --libvirt-uri "qemu:///system"
That's it, now you can test Sushy against the ``http://locahost:8000`` That's it, now you can test Sushy against the ``http://localhost:8000``
endpoint. endpoint.

View File

@ -23,7 +23,7 @@ Features
* Changing systems boot device, frequency (Once or permanently) and mode * Changing systems boot device, frequency (Once or permanently) and mode
(UEFI or BIOS) (UEFI or BIOS)
* Chassis management * Chassis management
* OEM extention * OEM extension
* Virtual media management * Virtual media management
* Session Management * Session Management

View File

@ -3,7 +3,7 @@ features:
- | - |
The ``get_system``, ``get_manager`` and ``get_chassis`` methods modified The ``get_system``, ``get_manager`` and ``get_chassis`` methods modified
not to require the ``identity`` parameter referring to a particular not to require the ``identity`` parameter referring to a particular
resource instance. If ``identity`` is omited, sushy will default to the resource instance. If ``identity`` is omitted, sushy will default to the
only available resource for as long as it's single and therefore only available resource for as long as it's single and therefore
deterministic. deterministic.
The intent is to simplify user API by not requiring the consumer to The intent is to simplify user API by not requiring the consumer to

View File

@ -2,4 +2,4 @@ fixes:
- Fixes bug where sushy would not pass a read/connect timeout through to - Fixes bug where sushy would not pass a read/connect timeout through to
requests when making requests to a redfish service. This means that an requests when making requests to a redfish service. This means that an
ill-timed failure could cause python processes calling sushy to freeze ill-timed failure could cause python processes calling sushy to freeze
indefinately. indefinitely.

View File

@ -4,5 +4,5 @@ fixes:
Disable HTTP connection pooling by asking HTTP server to close our Disable HTTP connection pooling by asking HTTP server to close our
connection right upon use. The rationale is that some BMC observed in connection right upon use. The rationale is that some BMC observed in
the wild seem to close persistent connections abruptly upon eventual the wild seem to close persistent connections abruptly upon eventual
re-use failing completely unrelated operation. So in ``sushy`` we reuse failing completely unrelated operation. So in ``sushy`` we
just try not to maintain persistent connections with BMC at all. just try not to maintain persistent connections with BMC at all.

View File

@ -41,7 +41,7 @@ class AuthBase(object, metaclass=abc.ABCMeta):
:param connector: Connector for http connections :param connector: Connector for http connections
""" """
# Set the root resource, and connector to use # Set the root resource, and connector to use
# for normal opreations. # for normal operations.
self._root_resource = root_resource self._root_resource = root_resource
self._connector = connector self._connector = connector
self._connector.set_auth(self) self._connector.set_auth(self)
@ -275,8 +275,8 @@ class SessionOrBasicAuth(SessionAuth):
# Previously we would silently eat the failure as SushyError # Previously we would silently eat the failure as SushyError
# and fallback as it is a general fault. Callers on direct # and fallback as it is a general fault. Callers on direct
# invocations through a connector _op method call can still # invocations through a connector _op method call can still
# receieve these exceptions, and applicaitons like Ironic do # receive these exceptions, and applications like Ironic do
# consider a client re-use disqualifier if there has been # consider a client reuse disqualifier if there has been
# a connection failure, so it is okay for us to fix the behavior # a connection failure, so it is okay for us to fix the behavior
# here. # here.
raise raise

View File

@ -187,7 +187,7 @@ class Connector(object):
'Please check credentials and try again.') 'Please check credentials and try again.')
raise raise
if not allow_reauth: if not allow_reauth:
LOG.error("Failure occured while attempting to retry " LOG.error("Failure occurred while attempting to retry "
"request after refreshing the session: %s", e) "request after refreshing the session: %s", e)
raise raise
if self._auth is not None: if self._auth is not None:
@ -211,7 +211,7 @@ class Connector(object):
're-authenticate.') 're-authenticate.')
self._auth.authenticate() self._auth.authenticate()
except exceptions.AccessError as refresh_exc: except exceptions.AccessError as refresh_exc:
LOG.error("A failure occured while attempting to refresh " LOG.error("A failure occurred while attempting to refresh "
"the session. Error: %s", refresh_exc.message) "the session. Error: %s", refresh_exc.message)
raise raise
LOG.debug("Authentication refreshed successfully, " LOG.debug("Authentication refreshed successfully, "

View File

@ -395,7 +395,7 @@ class Sushy(base.ResourceBase):
links_url = self.json.get('Links') links_url = self.json.get('Links')
sessions_uri = links_url['Sessions']['@odata.id'] sessions_uri = links_url['Sessions']['@odata.id']
# Save the session URL for post detection and prevention # Save the session URL for post detection and prevention
# of recursive autentication attempts. # of recursive authentication attempts.
self._conn._sessions_uri = sessions_uri self._conn._sessions_uri = sessions_uri
return sessions_uri return sessions_uri
except (TypeError, KeyError): except (TypeError, KeyError):

View File

@ -67,7 +67,7 @@ class AttributeRegistryEntryField(base.CompositeField):
attributes = AttributeListField('Attributes') attributes = AttributeListField('Attributes')
"""List of attributes in this registry""" """List of attributes in this registry"""
# Vendors may have aditional items such as Dependencies, Menus, etc. # Vendors may have additional items such as Dependencies, Menus, etc.
# Only get the attributes. # Only get the attributes.

View File

@ -89,7 +89,7 @@ class MessageRegistry(base.ResourceBase):
def parse_message(message_registries, message_field): def parse_message(message_registries, message_field):
"""Parse the messages in registries and substitute any parms """Parse the messages in registries and substitute any params
Check only registries that support messages. Check only registries that support messages.

View File

@ -176,10 +176,10 @@ class BootProgressStates(enum.Enum):
"""Initialization of the Primary Processor has started.""" """Initialization of the Primary Processor has started."""
BUS = 'BusInitializationStarted' BUS = 'BusInitializationStarted'
"""Initalization of the buses has started.""" """Initialization of the buses has started."""
MEMORY = 'MemoryInitializationStarted' MEMORY = 'MemoryInitializationStarted'
"""Initalization of memory has started.""" """Initialization of memory has started."""
SECONDARY_PROCESSOR = 'SecondaryProcessorInitializationStarted' SECONDARY_PROCESSOR = 'SecondaryProcessorInitializationStarted'
"""Secondary Prcessors have started initialization.""" """Secondary Prcessors have started initialization."""
@ -194,7 +194,7 @@ class BootProgressStates(enum.Enum):
"""System is in the Setup utility.""" """System is in the Setup utility."""
OS_BOOT_STARTED = 'OSBootStarted' OS_BOOT_STARTED = 'OSBootStarted'
"""Boot of the Operating Sysem has started.""" """Boot of the Operating System has started."""
OS_RUNNING = 'OSRunning' OS_RUNNING = 'OSRunning'
"""Operating System Running.""" """Operating System Running."""

View File

@ -339,7 +339,7 @@ class System(base.ResourceBase):
# to the intent of "use whatever the dhcp server says". # to the intent of "use whatever the dhcp server says".
data['Boot']['HttpBootUri'] = None data['Boot']['HttpBootUri'] = None
else: else:
# Explicilty set the URI. # Explicitly set the URI.
data['Boot']['HttpBootUri'] = http_boot_uri data['Boot']['HttpBootUri'] = http_boot_uri
elif not http_boot_uri: elif not http_boot_uri:
# We're not doing boot from URL, we should cleanup any setting # We're not doing boot from URL, we should cleanup any setting

View File

@ -319,7 +319,7 @@
}, },
"AccountModified": { "AccountModified": {
"Description": "Indicates that the account was successfully modified.", "Description": "Indicates that the account was successfully modified.",
"Message": "The account was successfully modifed.", "Message": "The account was successfully modified.",
"Severity": "OK", "Severity": "OK",
"NumberOfArgs": 0, "NumberOfArgs": 0,
"Resolution": "No resolution is required." "Resolution": "No resolution is required."

View File

@ -528,7 +528,7 @@
"Resolution": "No resolution is required." "Resolution": "No resolution is required."
}, },
"ResourceTypeIncompatible": { "ResourceTypeIncompatible": {
"Description": "Indicates that the resource type of the operation does not match that for the operation destination. Examples of when this can happen include during a POST to a collection using the wrong resource type, an update where the @odata.types do not match or on a major version incompatability.", "Description": "Indicates that the resource type of the operation does not match that for the operation destination. Examples of when this can happen include during a POST to a collection using the wrong resource type, an update where the @odata.types do not match or on a major version incompatibility.",
"Message": "The @odata.type of the request body %1 is incompatible with the @odata.type of the resource which is %2.", "Message": "The @odata.type of the request body %1 is incompatible with the @odata.type of the resource which is %2.",
"Severity": "Critical", "Severity": "Critical",
"NumberOfArgs": 2, "NumberOfArgs": 2,

View File

@ -375,7 +375,7 @@ class BiosZTTestCase(base.TestCase):
registries = {} registries = {}
conn = mock.Mock() conn = mock.Mock()
# Note(iurygregory): re-use message registry for now. # Note(iurygregory): reuse message registry for now.
with open('sushy/tests/unit/json_samples/message_registry.json') as f: with open('sushy/tests/unit/json_samples/message_registry.json') as f:
conn.get.return_value.json.return_value = json.load(f) conn.get.return_value.json.return_value = json.load(f)
msg_reg = message_registry.MessageRegistry( msg_reg = message_registry.MessageRegistry(