diff --git a/nutanix/resource_nutanix_network_security_rule.go b/nutanix/resource_nutanix_network_security_rule.go index 64b2ef9e..2e97a166 100644 --- a/nutanix/resource_nutanix_network_security_rule.go +++ b/nutanix/resource_nutanix_network_security_rule.go @@ -1139,7 +1139,7 @@ func expandNetworkRule(prefix string, d *schema.ResourceData) *v3.NetworkSecurit for k, v := range oal { nr := v.(map[string]interface{}) nrItem := &v3.NetworkRule{} - setIpSubnet := false + setIPSubnet := false iPSubnet := &v3.IPSubnet{} filter := &v3.CategoryFilter{} @@ -1149,17 +1149,17 @@ func expandNetworkRule(prefix string, d *schema.ResourceData) *v3.NetworkSecurit if ip, ipok := nr["ip_subnet"]; ipok && ip.(string) != "" { iPSubnet.IP = utils.StringPtr(ip.(string)) - setIpSubnet = true + setIPSubnet = true } if ippl, ipok := nr["ip_subnet_prefix_length"]; ipok && ippl.(string) != "" { if i, err := strconv.Atoi(ippl.(string)); err == nil { iPSubnet.PrefixLength = utils.Int64Ptr(int64(i)) - setIpSubnet = true + setIPSubnet = true } } - if setIpSubnet { + if setIPSubnet { nrItem.IPSubnet = iPSubnet }