File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
internal/service/vmservice Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -285,18 +285,17 @@ func TestReconcileMachineAddresses_DHCP(t *testing.T) {
285285 machineScope .ProxmoxMachine .Status .IPAddresses = map [string ]infrav1.IPAddress {infrav1 .DefaultNetworkDevice : {IPV4 : "DHCP" }}
286286 machineScope .ProxmoxMachine .Status .BootstrapDataProvided = ptr .To (true )
287287
288- iFaces := []* go_proxmox.AgentNetworkIface {
289- & go_proxmox.AgentNetworkIface {
290- Name : "net0" ,
291- HardwareAddress : "A6:23:64:4D:84:CB" ,
292- IPAddresses : []* go_proxmox.AgentNetworkIPAddress {{
293- IPAddressType : "ipv4" ,
294- IPAddress : "10.10.10.4" ,
295- Prefix : 24 ,
296- MacAddress : "A6:23:64:4D:84:CB" ,
297- },
298- },
288+ iFaces := []* go_proxmox.AgentNetworkIface {{
289+ Name : "net0" ,
290+ HardwareAddress : "A6:23:64:4D:84:CB" ,
291+ IPAddresses : []* go_proxmox.AgentNetworkIPAddress {{
292+ IPAddressType : "ipv4" ,
293+ IPAddress : "10.10.10.4" ,
294+ Prefix : 24 ,
295+ MacAddress : "A6:23:64:4D:84:CB" ,
296+ },
299297 },
298+ },
300299 }
301300
302301 proxmoxClient .EXPECT ().GetVMNetwork (context .Background (), vm ).Return (iFaces , nil ).Once ()
You can’t perform that action at this time.
0 commit comments