Skip to content

Commit 0bd8afc

Browse files
equate mac id case insensitive (#857)
1 parent cbcfd8d commit 0bd8afc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v2v-helper/vm/vmops.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (vmops *VMOps) GetVMInfo(ostype string) (VMInfo, error) {
194194
if vmwareMachine.Spec.VMInfo.GuestNetworks != nil {
195195
for _, guestNetwork := range vmwareMachine.Spec.VMInfo.GuestNetworks {
196196
// Every mac should have a corresponding IP, Ignore link layer ip
197-
if guestNetwork.MAC == macAddresss && !strings.Contains(guestNetwork.IP, ":") {
197+
if strings.EqualFold(guestNetwork.MAC, macAddresss) && !strings.Contains(guestNetwork.IP, ":") {
198198
ips = append(ips, guestNetwork.IP)
199199
}
200200
}

0 commit comments

Comments
 (0)