Skip to content

Commit

Permalink
Fix various spelling errors
Browse files Browse the repository at this point in the history
Signed-off-by: Sean McGinnis <[email protected]>
  • Loading branch information
stmcginnis committed May 21, 2024
1 parent 40307ac commit e6c6d93
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion redfish/accelerationfunction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion redfish/addresspool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion redfish/componentintegrity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion redfish/ethernetinterface_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
4 changes: 2 additions & 2 deletions redfish/metricdefinition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)))
Expand Down
2 changes: 1 addition & 1 deletion redfish/outletgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion redfish/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion redfish/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion redfish/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions swordfish/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit e6c6d93

Please sign in to comment.