diff --git a/doc/source/contributor/index.rst b/doc/source/contributor/index.rst index 94fb0105..adcb8203 100644 --- a/doc/source/contributor/index.rst +++ b/doc/source/contributor/index.rst @@ -68,7 +68,7 @@ dynamic way. To run it do # Or, running with custom parameters 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. diff --git a/doc/source/index.rst b/doc/source/index.rst index e3bcc482..29178cf7 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -23,7 +23,7 @@ Features * Changing systems boot device, frequency (Once or permanently) and mode (UEFI or BIOS) * Chassis management -* OEM extention +* OEM extension * Virtual media management * Session Management diff --git a/releasenotes/notes/add-default-identity-10c5dd23bed0e915.yaml b/releasenotes/notes/add-default-identity-10c5dd23bed0e915.yaml index 6aa2a8b9..d5a14095 100644 --- a/releasenotes/notes/add-default-identity-10c5dd23bed0e915.yaml +++ b/releasenotes/notes/add-default-identity-10c5dd23bed0e915.yaml @@ -3,7 +3,7 @@ features: - | The ``get_system``, ``get_manager`` and ``get_chassis`` methods modified 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 deterministic. The intent is to simplify user API by not requiring the consumer to diff --git a/releasenotes/notes/add-read-and-connect-timeout-9f7dc3ed63c192c8.yaml b/releasenotes/notes/add-read-and-connect-timeout-9f7dc3ed63c192c8.yaml index 504d13d9..96acb0c6 100644 --- a/releasenotes/notes/add-read-and-connect-timeout-9f7dc3ed63c192c8.yaml +++ b/releasenotes/notes/add-read-and-connect-timeout-9f7dc3ed63c192c8.yaml @@ -2,4 +2,4 @@ fixes: - 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 ill-timed failure could cause python processes calling sushy to freeze - indefinately. + indefinitely. diff --git a/releasenotes/notes/disable-conn-pooling-3456782afe56ac94.yaml b/releasenotes/notes/disable-conn-pooling-3456782afe56ac94.yaml index 9dadcfd3..859c6ce6 100644 --- a/releasenotes/notes/disable-conn-pooling-3456782afe56ac94.yaml +++ b/releasenotes/notes/disable-conn-pooling-3456782afe56ac94.yaml @@ -4,5 +4,5 @@ fixes: Disable HTTP connection pooling by asking HTTP server to close our connection right upon use. The rationale is that some BMC observed in 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. diff --git a/sushy/auth.py b/sushy/auth.py index 69b29c09..ad73ad86 100644 --- a/sushy/auth.py +++ b/sushy/auth.py @@ -41,7 +41,7 @@ class AuthBase(object, metaclass=abc.ABCMeta): :param connector: Connector for http connections """ # Set the root resource, and connector to use - # for normal opreations. + # for normal operations. self._root_resource = root_resource self._connector = connector self._connector.set_auth(self) @@ -275,8 +275,8 @@ class SessionOrBasicAuth(SessionAuth): # Previously we would silently eat the failure as SushyError # and fallback as it is a general fault. Callers on direct # invocations through a connector _op method call can still - # receieve these exceptions, and applicaitons like Ironic do - # consider a client re-use disqualifier if there has been + # receive these exceptions, and applications like Ironic do + # consider a client reuse disqualifier if there has been # a connection failure, so it is okay for us to fix the behavior # here. raise diff --git a/sushy/connector.py b/sushy/connector.py index 3103239a..75b341c4 100644 --- a/sushy/connector.py +++ b/sushy/connector.py @@ -187,7 +187,7 @@ class Connector(object): 'Please check credentials and try again.') raise 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) raise if self._auth is not None: @@ -211,7 +211,7 @@ class Connector(object): 're-authenticate.') self._auth.authenticate() 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) raise LOG.debug("Authentication refreshed successfully, " diff --git a/sushy/main.py b/sushy/main.py index c537504c..e29ceaff 100644 --- a/sushy/main.py +++ b/sushy/main.py @@ -395,7 +395,7 @@ class Sushy(base.ResourceBase): links_url = self.json.get('Links') sessions_uri = links_url['Sessions']['@odata.id'] # Save the session URL for post detection and prevention - # of recursive autentication attempts. + # of recursive authentication attempts. self._conn._sessions_uri = sessions_uri return sessions_uri except (TypeError, KeyError): diff --git a/sushy/resources/registry/attribute_registry.py b/sushy/resources/registry/attribute_registry.py index 7cdd5edf..ce161d51 100644 --- a/sushy/resources/registry/attribute_registry.py +++ b/sushy/resources/registry/attribute_registry.py @@ -67,7 +67,7 @@ class AttributeRegistryEntryField(base.CompositeField): attributes = AttributeListField('Attributes') """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. diff --git a/sushy/resources/registry/message_registry.py b/sushy/resources/registry/message_registry.py index 2db71973..1f100715 100644 --- a/sushy/resources/registry/message_registry.py +++ b/sushy/resources/registry/message_registry.py @@ -89,7 +89,7 @@ class MessageRegistry(base.ResourceBase): 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. diff --git a/sushy/resources/system/constants.py b/sushy/resources/system/constants.py index 49e577ba..386d7d6f 100644 --- a/sushy/resources/system/constants.py +++ b/sushy/resources/system/constants.py @@ -176,10 +176,10 @@ class BootProgressStates(enum.Enum): """Initialization of the Primary Processor has started.""" BUS = 'BusInitializationStarted' - """Initalization of the buses has started.""" + """Initialization of the buses has started.""" MEMORY = 'MemoryInitializationStarted' - """Initalization of memory has started.""" + """Initialization of memory has started.""" SECONDARY_PROCESSOR = 'SecondaryProcessorInitializationStarted' """Secondary Prcessors have started initialization.""" @@ -194,7 +194,7 @@ class BootProgressStates(enum.Enum): """System is in the Setup utility.""" OS_BOOT_STARTED = 'OSBootStarted' - """Boot of the Operating Sysem has started.""" + """Boot of the Operating System has started.""" OS_RUNNING = 'OSRunning' """Operating System Running.""" diff --git a/sushy/resources/system/system.py b/sushy/resources/system/system.py index 33284e9e..81950790 100644 --- a/sushy/resources/system/system.py +++ b/sushy/resources/system/system.py @@ -339,7 +339,7 @@ class System(base.ResourceBase): # to the intent of "use whatever the dhcp server says". data['Boot']['HttpBootUri'] = None else: - # Explicilty set the URI. + # Explicitly set the URI. data['Boot']['HttpBootUri'] = http_boot_uri elif not http_boot_uri: # We're not doing boot from URL, we should cleanup any setting diff --git a/sushy/standard_registries/Base.1.0.0.json b/sushy/standard_registries/Base.1.0.0.json index ce3c24f2..e12df389 100644 --- a/sushy/standard_registries/Base.1.0.0.json +++ b/sushy/standard_registries/Base.1.0.0.json @@ -319,7 +319,7 @@ }, "AccountModified": { "Description": "Indicates that the account was successfully modified.", - "Message": "The account was successfully modifed.", + "Message": "The account was successfully modified.", "Severity": "OK", "NumberOfArgs": 0, "Resolution": "No resolution is required." diff --git a/sushy/standard_registries/Base.1.4.0.json b/sushy/standard_registries/Base.1.4.0.json index 343f8bc3..9a13e41a 100644 --- a/sushy/standard_registries/Base.1.4.0.json +++ b/sushy/standard_registries/Base.1.4.0.json @@ -528,7 +528,7 @@ "Resolution": "No resolution is required." }, "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.", "Severity": "Critical", "NumberOfArgs": 2, diff --git a/sushy/tests/unit/resources/system/test_bios.py b/sushy/tests/unit/resources/system/test_bios.py index ef429a9a..894bc4b6 100644 --- a/sushy/tests/unit/resources/system/test_bios.py +++ b/sushy/tests/unit/resources/system/test_bios.py @@ -375,7 +375,7 @@ class BiosZTTestCase(base.TestCase): registries = {} 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: conn.get.return_value.json.return_value = json.load(f) msg_reg = message_registry.MessageRegistry(