Skip to content

Commit 8eca62c

Browse files
address PR feedback
1 parent af80f6a commit 8eca62c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

k8s/migration/pkg/utils/credutils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,6 +1787,9 @@ func processSingleVM(ctx context.Context, scope *scope.VMwareCredsScope, vm *obj
17871787
if nic.MAC == guestNet.MAC {
17881788
// Check if IP is ipv4
17891789
if !strings.Contains(guestNet.IP, ":") {
1790+
if nicList[i].IPAddress == nil {
1791+
nicList[i].IPAddress = []string{}
1792+
}
17901793
nicList[i].IPAddress = append(nicList[i].IPAddress, guestNet.IP)
17911794
}
17921795
}

0 commit comments

Comments
 (0)