Skip to content

Commit dab52f9

Browse files
Merge pull request #2525 from metal3-io-bot/cherry-pick-2519-to-release-1.8
[release-1.8] 🐛 Handle NICs without IP addresses
2 parents 57ee4a9 + 0961cfb commit dab52f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

baremetal/metal3machine_manager.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,9 @@ func (m *MachineManager) nodeAddresses(host *bmov1alpha1.BareMetalHost) []cluste
12171217
Type: clusterv1.MachineInternalIP,
12181218
Address: nic.IP,
12191219
}
1220+
if address.Address == "" {
1221+
continue
1222+
}
12201223
addrs = append(addrs, address)
12211224
}
12221225

0 commit comments

Comments
 (0)