[ci skip] fix typo

This commit is contained in:
2023-10-27 14:55:22 +11:00
parent c395cc79d2
commit c01000e7bd

View File

@@ -227,7 +227,7 @@ func generateBusSharingTable() string {
return htmlString
}
func generatMultiWriterTable() string {
func generateMultiWriterTable() string {
// Define the HTML template
htmlTemplate := `<table><tbody><tr><th>VM Name</th><th>Cluster Name</th><th>Disk Label</th><th>Sharing Type</th></tr>{{range .}}<tr><td>{{.VmName}}</td><td>{{.ClusterName}}</td><td>{{.DiskLabel}}</td><td>{{.SharingType}}</td></tr>{{end}}</tbody></table>`
@@ -245,7 +245,7 @@ func generatMultiWriterTable() string {
// Convert the buffer to a string
htmlString := buf.String()
fmt.Printf("generatMultiWriterTable : %s\n", htmlString)
fmt.Printf("generateMultiWriterTable : %s\n", htmlString)
return htmlString
}
@@ -351,7 +351,7 @@ func updateConfluenceMultiWriter(api *goconfluence.API, vCenterHostname string,
// Generate new content for confluence
//fmt.Printf("Current content: %s\n", c.Body.Storage.Value)
newTable := generatMultiWriterTable()
newTable := generateMultiWriterTable()
newContent := updateHtml(c.Body.Storage.Value, vCenterHostname, newTable)
//fmt.Printf("New Content: %v\n", newContent)