IBM-tfproviders / terraform-provider-vsphere

Mozilla Public License 2.0
5 stars 5 forks source link

When the VM is powered off, terraform destroy results in a crash #27

Open rbmateescu opened 7 years ago

rbmateescu commented 7 years ago

the vm_network_interface.readNetworkData function uses the vm.guest information (namely guest.net and guest.ipstack structures) to determine the list of network interfaces and their associated routing information. When the VM is powered off, the guest.net is unset, resulting in an empty list of network interfaces. guest.ipstack however is set and contains all the routing information, which results in an error condition when we try to update an inexistent deviceID.