mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/openstack: gophercloud migration: Only set 'gateway_ip' to "" if 'no_gateway' == true.
This commit is contained in:
parent
8405a9f118
commit
28466f50a5
@ -245,9 +245,9 @@ func resourceNetworkingSubnetV2Update(d *schema.ResourceData, meta interface{})
|
||||
}
|
||||
|
||||
if d.HasChange("no_gateway") {
|
||||
noGateway := d.Get("no_gateway").(bool)
|
||||
if noGateway {
|
||||
updateOpts.GatewayIP = nil
|
||||
if d.Get("no_gateway").(bool) {
|
||||
gatewayIP := ""
|
||||
updateOpts.GatewayIP = &gatewayIP
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user