Skip to content

Commit 2e18cec

Browse files
author
Valeriy Khorunzhin
committed
fix message
Signed-off-by: Valeriy Khorunzhin <valeriy.khorunzhin@flant.com>
1 parent 4dc4a05 commit 2e18cec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • images/virtualization-artifact/pkg/controller/vm/internal

images/virtualization-artifact/pkg/controller/vm/internal/lifecycle.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (h *LifeCycleHandler) syncRunning(ctx context.Context, vm *v1alpha2.Virtual
125125
if volumeError := h.checkVMPodVolumeErrors(ctx, vm, log); volumeError != nil {
126126
cb.Status(metav1.ConditionFalse).
127127
Reason(vmcondition.ReasonPodNotStarted).
128-
Message(fmt.Sprintf("Error attaching block devices to virtual machine: %s", volumeError.Error()))
128+
Message(volumeError.Error())
129129
conditions.SetCondition(cb, &vm.Status.Conditions)
130130
return
131131
}
@@ -237,7 +237,7 @@ func (h *LifeCycleHandler) checkVMPodVolumeErrors(ctx context.Context, vm *v1alp
237237
return err
238238
}
239239
if lastEvent != nil && (lastEvent.Reason == watcher.ReasonFailedAttachVolume || lastEvent.Reason == watcher.ReasonFailedMount) {
240-
return fmt.Errorf("failed to attach volume: %s: %s", lastEvent.Reason, lastEvent.Message)
240+
return fmt.Errorf("error attaching block devices to virtual machine: %s: %s", lastEvent.Reason, lastEvent.Message)
241241
}
242242
}
243243

0 commit comments

Comments
 (0)