1
0
mirror of https://github.com/rancher/os.git synced 2025-04-28 03:20:50 +00:00

Fix typos report by goreportcard

This commit is contained in:
niusmallnan 2019-01-26 10:38:35 +08:00
parent f174bbf57e
commit 36064ca496
3 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ func coerceNodes(w, s Node) Node {
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.
func normalizeNodeNames(node Node, report *Report) Node {
if strings.Contains(node.name, "-") {

View File

@ -28,7 +28,7 @@ type Datasource interface {
FetchUserdata() ([]byte, error)
Type() 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
}

View File

@ -57,7 +57,7 @@ func ProcessVMwareNetconf(config map[string]string) ([]InterfaceGenerator, error
var dhcp bool
iface := &physicalInterface{}
log.Printf("Proccessing interface %d", i)
log.Printf("Processing interface %d", i)
log.Println("Processing DHCP")
if dhcp, err = processDHCPConfig(config, fmt.Sprintf("interface.%d.", i)); err != nil {