Skip to content

Commit

Permalink
vlanid 0 is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishekism9450 committed Mar 1, 2023
1 parent 5e3f83a commit f87d879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nutanix/resource_nutanix_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ func getSubnetResources(d *schema.ResourceData, subnet *v3.SubnetResources) {
dhcpo.DomainSearchList = expandStringList(v.([]interface{}))
}

if v, ok := d.GetOk("vlan_id"); ok {
if v, ok := d.GetOkExists("vlan_id"); ok {
if v.(int) == 0 || ok {
subnet.VlanID = utils.Int64Ptr(int64(v.(int)))
}
Expand Down

0 comments on commit f87d879

Please sign in to comment.