From d5758bd4aec1c2256558e189ce9660f3999ed536 Mon Sep 17 00:00:00 2001 From: Siddharth Kulshrestha Date: Mon, 14 Mar 2022 07:53:05 +0530 Subject: [PATCH] Lint fix --- nutanix/resource_nutanix_network_security_rule.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nutanix/resource_nutanix_network_security_rule.go b/nutanix/resource_nutanix_network_security_rule.go index 64b2ef9e4..2e97a166f 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 }