Skip to content

Commit

Permalink
Merge pull request #279 from ioito/hotfix/qx-pve-panic
Browse files Browse the repository at this point in the history
fix(proxmox): panic
  • Loading branch information
ioito authored May 8, 2023
2 parents bc1e1d0 + 33d13a1 commit 77babf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/multicloud/proxmox/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ func (self *SRegion) GetVmAgentNetworkInterfaces(node string, VmId int) (map[str
}

for _, intermediate := range intermediates {
ipMap[intermediate.HardwareAddress] = intermediate.IPAddresses[0].IPAddress
for _, addr := range intermediate.IPAddresses {
ipMap[intermediate.HardwareAddress] = addr.IPAddress
}
}

return ipMap, nil
Expand Down

0 comments on commit 77babf2

Please sign in to comment.