mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-08-25 04:45:46 +00:00
Fix timeout issue
This commit is contained in:
parent
097e3bfe5d
commit
913580b9e8
@ -18,6 +18,7 @@ BUG FIXES:
|
|||||||
* resource/virtual_environment_vm: Fix `network_device` deletion issue
|
* resource/virtual_environment_vm: Fix `network_device` deletion issue
|
||||||
* resource/virtual_environment_vm: Fix slow refresh when VM is stopped and agent is enabled
|
* resource/virtual_environment_vm: Fix slow refresh when VM is stopped and agent is enabled
|
||||||
* resource/virtual_environment_vm: Fix crash caused by assuming IP addresses are always reported by the QEMU agent
|
* resource/virtual_environment_vm: Fix crash caused by assuming IP addresses are always reported by the QEMU agent
|
||||||
|
* resource/virtual_environment_vm: Fix timeout issue while waiting for IP addresses to be reported by the QEMU agent
|
||||||
|
|
||||||
OTHER:
|
OTHER:
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ func (c *VirtualEnvironmentClient) WaitForNetworkInterfacesFromVMAgent(nodeName
|
|||||||
|
|
||||||
if waitForIP {
|
if waitForIP {
|
||||||
for _, nic := range *data.Result {
|
for _, nic := range *data.Result {
|
||||||
if nic.IPAddresses == nil {
|
if nic.IPAddresses != nil && len(*nic.IPAddresses) == 0 {
|
||||||
missingIP = true
|
missingIP = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
@ -301,7 +301,7 @@ type VirtualEnvironmentVMGetQEMUNetworkInterfacesResponseData struct {
|
|||||||
type VirtualEnvironmentVMGetQEMUNetworkInterfacesResponseResult struct {
|
type VirtualEnvironmentVMGetQEMUNetworkInterfacesResponseResult struct {
|
||||||
MACAddress string `json:"hardware-address"`
|
MACAddress string `json:"hardware-address"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Statistics VirtualEnvironmentVMGetQEMUNetworkInterfacesResponseResultStatistics `json:"statistics"`
|
Statistics *VirtualEnvironmentVMGetQEMUNetworkInterfacesResponseResultStatistics `json:"statistics,omitempty"`
|
||||||
IPAddresses *[]VirtualEnvironmentVMGetQEMUNetworkInterfacesResponseResultIPAddress `json:"ip-addresses,omitempty"`
|
IPAddresses *[]VirtualEnvironmentVMGetQEMUNetworkInterfacesResponseResultIPAddress `json:"ip-addresses,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user