From e6c6d93c374f03bf8b880616cdbdb42512b7ecec Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Tue, 21 May 2024 14:29:53 -0500 Subject: [PATCH] Fix various spelling errors Signed-off-by: Sean McGinnis --- redfish/accelerationfunction.go | 2 +- redfish/addresspool.go | 2 +- redfish/componentintegrity.go | 2 +- redfish/ethernetinterface_test.go | 2 +- redfish/metricdefinition_test.go | 4 ++-- redfish/outletgroup.go | 2 +- redfish/port.go | 2 +- redfish/settings.go | 2 +- redfish/volume.go | 2 +- swordfish/volume.go | 6 +++--- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/redfish/accelerationfunction.go b/redfish/accelerationfunction.go index 0970a670..033f24ff 100644 --- a/redfish/accelerationfunction.go +++ b/redfish/accelerationfunction.go @@ -62,7 +62,7 @@ type AccelerationFunction struct { UUID string // Version shall describe the acceleration function version. Version string - // endpoints is a colleection of URIs for connected endpoints. + // endpoints is a collection of URIs for connected endpoints. endpoints []string // EndpointsCount is the number of connected endpoints. EndpointsCount int diff --git a/redfish/addresspool.go b/redfish/addresspool.go index 46929df5..0849e20c 100644 --- a/redfish/addresspool.go +++ b/redfish/addresspool.go @@ -35,7 +35,7 @@ type AddressPool struct { GenZ APGenZ // Status shall contain any status or health properties of the resource. Status common.Status - // endpoints is a colleection of URIs for connected endpoints. + // endpoints is a collection of URIs for connected endpoints. endpoints []string // EndpointsCount is the number of connected endpoints. EndpointsCount int diff --git a/redfish/componentintegrity.go b/redfish/componentintegrity.go index 902735bb..1e630e19 100644 --- a/redfish/componentintegrity.go +++ b/redfish/componentintegrity.go @@ -183,7 +183,7 @@ type ComponentIntegrity struct { spdmGetSignedMeasurementsTarget string tpmGetSignedMeasurementsTarget string componentsProtected []string - // ComponentsProtectedCount is the number of resources protected by the compoent identified by TargetComponentURI. + // ComponentsProtectedCount is the number of resources protected by the component identified by TargetComponentURI. ComponentsProtectedCount int } diff --git a/redfish/ethernetinterface_test.go b/redfish/ethernetinterface_test.go index 6db7dec1..47199926 100644 --- a/redfish/ethernetinterface_test.go +++ b/redfish/ethernetinterface_test.go @@ -305,6 +305,6 @@ func TestEthernetInterfaceIPv6(t *testing.T) { } if result.IPv6Addresses[1].PrefixLength != 128 { - t.Errorf("The 3nd IPv6 address's prefix length should be 128, got: %d", result.IPv6Addresses[1].PrefixLength) + t.Errorf("The 3rd IPv6 address's prefix length should be 128, got: %d", result.IPv6Addresses[1].PrefixLength) } } diff --git a/redfish/metricdefinition_test.go b/redfish/metricdefinition_test.go index 549f9d05..91ac8bcd 100644 --- a/redfish/metricdefinition_test.go +++ b/redfish/metricdefinition_test.go @@ -17,7 +17,7 @@ var metricDefinitonBody = `{ "@odata.id": "/redfish/v1/TelemetryService/MetricDefinitions/VoltageStatus", "Id": "VoltageStatus", "Name": "Voltage status Metric Definition", - "Description": "Status of the Voltage of Small Form Factor pluggable(SFP) Tranceiver", + "Description": "Status of the Voltage of Small Form Factor pluggable(SFP) Transceiver", "MetricType": "Discrete", "MetricDataType": "Enumeration", "Accuracy": 0, @@ -41,7 +41,7 @@ func TestMetricDefinition(t *testing.T) { assertEquals(t, "VoltageStatus", result.ID) assertEquals(t, "Voltage status Metric Definition", result.Name) - assertEquals(t, "Status of the Voltage of Small Form Factor pluggable(SFP) Tranceiver", result.Description) + assertEquals(t, "Status of the Voltage of Small Form Factor pluggable(SFP) Transceiver", result.Description) assertEquals(t, "0", fmt.Sprintf("%.0f", result.Accuracy)) assertEquals(t, "PT60.0S", result.SensingInterval) assertEquals(t, "4", fmt.Sprintf("%d", len(result.DiscreteValues))) diff --git a/redfish/outletgroup.go b/redfish/outletgroup.go index 3d1f24c1..d20c9460 100644 --- a/redfish/outletgroup.go +++ b/redfish/outletgroup.go @@ -133,7 +133,7 @@ func (outletgroup *OutletGroup) ResetMetrics() error { return outletgroup.Post(outletgroup.resetMetricsTarget, nil) } -// Outlets get the outlets that are in this outlet gruop. +// Outlets get the outlets that are in this outlet group. func (outletgroup *OutletGroup) Outlets() ([]*Outlet, error) { var result []*Outlet diff --git a/redfish/port.go b/redfish/port.go index a9e146e5..a3a95581 100644 --- a/redfish/port.go +++ b/redfish/port.go @@ -417,7 +417,7 @@ const ( IfAliasIDSubtype IDSubtype = "IfAlias" // Interface name, based on the ifName MIB object. IfNameIDSubtype IDSubtype = "IfName" - // Locally assigned, based on a alpha-numeric value locally assigned. + // Locally assigned, based on an alphanumeric value locally assigned. LocalAssignIDSubtype IDSubtype = "LocalAssign" // MAC address, based on an agent detected unicast source address as defined in IEEE standard 802. MacAddrIDSubtype IDSubtype = "MacAddr" diff --git a/redfish/settings.go b/redfish/settings.go index 9a8a8a3d..1ba2f61f 100644 --- a/redfish/settings.go +++ b/redfish/settings.go @@ -139,7 +139,7 @@ func (ba SettingsAttributes) Float64(name string) float64 { // Int gets the value as an integer or 0 if that is not possible. func (ba SettingsAttributes) Int(name string) int { - // Integer values may be interpeted as float64, so get it as that first, + // Integer values may be interpreted as float64, so get it as that first, // then coerce down to int. floatVal := int(ba.Float64(name)) return (floatVal) diff --git a/redfish/volume.go b/redfish/volume.go index 4ecac976..bbc55a96 100644 --- a/redfish/volume.go +++ b/redfish/volume.go @@ -768,7 +768,7 @@ func (volume *Volume) Initialize(initializeMethod InitializeMethod, initializeTy // RemoveReplicaRelationship is used to disable data synchronization between a source and // target volume, remove the replication relationship, and optionally delete the target volume. // -// `deleteTargetVolume` indicates whether to delte the target volume as part of the operation. +// `deleteTargetVolume` indicates whether to delete the target volume as part of the operation. // // `targetVolumeURI` is the URI to the existing target volume. func (volume *Volume) RemoveReplicaRelationship(deleteTargetVolume bool, targetVolumeURI string) error { diff --git a/swordfish/volume.go b/swordfish/volume.go index e567523e..a4c03285 100644 --- a/swordfish/volume.go +++ b/swordfish/volume.go @@ -299,17 +299,17 @@ const ( // activities to close the RAID write hole. OffWriteHoleProtectionPolicyType WriteHoleProtectionPolicyType = "Off" // JournalingWriteHoleProtectionPolicyType The policy that uses separate - // block device for write-ahead logging to adddress write hole issue. All + // block device for write-ahead logging to address write hole issue. All // write operations on the RAID volume are first logged on dedicated // journaling device that is not part of the volume. JournalingWriteHoleProtectionPolicyType WriteHoleProtectionPolicyType = "Journaling" // DistributedLogWriteHoleProtectionPolicyType The policy that - // distributes additional log (e.q. cheksum of the parity) among the + // distributes additional log (e.q. checksum of the parity) among the // volume's capacity sources to address write hole issue. Additional data // is used to detect data corruption on the volume. DistributedLogWriteHoleProtectionPolicyType WriteHoleProtectionPolicyType = "DistributedLog" // OEMWriteHoleProtectionPolicyType The policy that is Oem specific. The - // mechanism details are unknown unless provided separatly by the Oem. + // mechanism details are unknown unless provided separately by the Oem. OEMWriteHoleProtectionPolicyType WriteHoleProtectionPolicyType = "Oem" )