mirror of
https://github.com/rancher/os.git
synced 2025-08-25 17:59:17 +00:00
Fix typos report by goreportcard
This commit is contained in:
parent
f174bbf57e
commit
36064ca496
@ -149,7 +149,7 @@ func coerceNodes(w, s Node) Node {
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
// normalizeNodeNames replaces all occurences of '-' with '_' within key names
|
// normalizeNodeNames replaces all occurrences of '-' with '_' within key names
|
||||||
// and makes a note of each replacement in the report.
|
// and makes a note of each replacement in the report.
|
||||||
func normalizeNodeNames(node Node, report *Report) Node {
|
func normalizeNodeNames(node Node, report *Report) Node {
|
||||||
if strings.Contains(node.name, "-") {
|
if strings.Contains(node.name, "-") {
|
||||||
|
@ -28,7 +28,7 @@ type Datasource interface {
|
|||||||
FetchUserdata() ([]byte, error)
|
FetchUserdata() ([]byte, error)
|
||||||
Type() string
|
Type() string
|
||||||
String() string
|
String() string
|
||||||
// Finish gives the datasource the oportunity to clean up, unmount or release any open / cache resources
|
// Finish gives the datasource the opportunity to clean up, unmount or release any open / cache resources
|
||||||
Finish() error
|
Finish() error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ func ProcessVMwareNetconf(config map[string]string) ([]InterfaceGenerator, error
|
|||||||
var dhcp bool
|
var dhcp bool
|
||||||
iface := &physicalInterface{}
|
iface := &physicalInterface{}
|
||||||
|
|
||||||
log.Printf("Proccessing interface %d", i)
|
log.Printf("Processing interface %d", i)
|
||||||
|
|
||||||
log.Println("Processing DHCP")
|
log.Println("Processing DHCP")
|
||||||
if dhcp, err = processDHCPConfig(config, fmt.Sprintf("interface.%d.", i)); err != nil {
|
if dhcp, err = processDHCPConfig(config, fmt.Sprintf("interface.%d.", i)); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user