Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimutant committed Jan 4, 2024
1 parent d6be879 commit 12e29ae
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ func flattenClusterNetworkReference(pr *import1.ClusterNetworkReference) []map[s
cls["nfs_subnet_whitelist"] = pr.NfsSubnetWhitelist
cls["name_server_ip_list"] = flattenIPAddressOrFQDN(pr.NameServerIpList)
cls["ntp_server_ip_list"] = flattenIPAddressOrFQDN(pr.NtpServerIpList)
cls["smtp_server"] = flattenSmtpServerRef(pr.SmtpServer)
cls["smtp_server"] = flattenSMTPServerRef(pr.SmtpServer)
cls["masquerading_ip"] = flattenIPAddress(pr.MasqueradingIp)
cls["masquerading_port"] = pr.MasqueradingPort
cls["management_server"] = flattenManagementServerRef(pr.ManagementServer)
Expand Down Expand Up @@ -715,13 +715,13 @@ func flattenIPAddressOrFQDN(pr []import4.IPAddressOrFQDN) []map[string]interface
return nil
}

func flattenSmtpServerRef(pr *import1.SmtpServerRef) []map[string]interface{} {
func flattenSMTPServerRef(pr *import1.SmtpServerRef) []map[string]interface{} {
if pr != nil {
smtp := make([]map[string]interface{}, 0)
s := make(map[string]interface{})

s["email_address"] = pr.EmailAddress
s["server"] = flattenSmtpNetwork(pr.Server)
s["server"] = flattenSMTPNetwork(pr.Server)
s["type"] = pr.Type

smtp = append(smtp, s)
Expand Down Expand Up @@ -765,7 +765,7 @@ func flattenManagementServerRef(pr *import1.ManagementServerRef) []map[string]in
return nil
}

func flattenSmtpNetwork(pr *import1.SmtpNetwork) []map[string]interface{} {
func flattenSMTPNetwork(pr *import1.SmtpNetwork) []map[string]interface{} {
if pr != nil {
smtp := make([]map[string]interface{}, 0)

Expand Down Expand Up @@ -925,7 +925,6 @@ func flattenClusterFunctionRef(pr []import1.ClusterFunctionRef) []string {
clsFuncs := make([]string, len(pr))
const two, three, four, five, six, seven, eight = 2, 3, 4, 5, 6, 7, 8
for _, v := range pr {

if v == import1.ClusterFunctionRef(two) {
clsFuncs = append(clsFuncs, "AOS")
}
Expand Down Expand Up @@ -1101,7 +1100,7 @@ func flattenUpgradeStatus(pr *import1.UpgradeStatus) string {
return "FAILED"
}
if *pr == import1.UpgradeStatus(nine) {
return "CANCELLED"
return "CANCELED"
}
if *pr == import1.UpgradeStatus(ten) {
return "SCHEDULED"
Expand Down

0 comments on commit 12e29ae

Please sign in to comment.