Skip to content

Commit

Permalink
Fix log for incompatible VM names
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <ahadas@redhat.com>
  • Loading branch information
ahadas committed Jun 22, 2023
1 parent 84a1235 commit e226588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/plan/kubevirt.go
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@ func (r *KubeVirt) virtualMachine(vm *plan.VMStatus) (object *cnv.VirtualMachine
r.Log.Error(err, "Failed to update the VM name to meet DNS1123 protocol requirements.")
return
}
r.Log.Info("VM name ", originalName, " was incompatible with DNS1123 RFC, changing to ",
vm.Name)
r.Log.Info("VM name is incompatible with DNS1123 RFC, renaming",
"originalName", originalName, "newName", vm.Name)
}

var ok bool
Expand Down

0 comments on commit e226588

Please sign in to comment.