mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #1024 from sparkprime/fix_network_interface
Fix network interface
This commit is contained in:
commit
39e8f15752
@ -671,7 +671,7 @@ func resourceComputeInstanceUpdate(d *schema.ResourceData, meta interface{}) err
|
||||
// Delete any accessConfig that currently exists in instNetworkInterface
|
||||
for _, ac := range instNetworkInterface.AccessConfigs {
|
||||
op, err := config.clientCompute.Instances.DeleteAccessConfig(
|
||||
config.Project, zone, d.Id(), networkName, ac.Name).Do()
|
||||
config.Project, zone, d.Id(), ac.Name, networkName).Do()
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error deleting old access_config: %s", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user