File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
images/virtualization-artifact/pkg/controller/service/restorer Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ func (v *VirtualMachineHandler) ProcessRestore(ctx context.Context) error {
181
181
updErr := v .client .Update (ctx , vm )
182
182
if updErr != nil {
183
183
if apierrors .IsConflict (updErr ) {
184
- return fmt .Errorf ("waiting for the `VirtualMachine` %w : %w" , common . ErrUpdating , updErr )
184
+ return fmt .Errorf ("waiting for the `VirtualMachine` %s : %w" , vm . Name , common . ErrUpdating )
185
185
} else {
186
186
return fmt .Errorf ("failed to update the `VirtualMachine`: %w" , updErr )
187
187
}
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import (
22
22
"fmt"
23
23
24
24
corev1 "k8s.io/api/core/v1"
25
- apierrors "k8s.io/apimachinery/pkg/api/errors"
26
25
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
27
26
"k8s.io/apimachinery/pkg/types"
28
27
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -211,10 +210,6 @@ var RetryErrors = []error{
211
210
}
212
211
213
212
func shouldIgnoreError (mode v1alpha2.VMOPRestoreMode , err error ) bool {
214
- if apierrors .IsConflict (err ) {
215
- return true
216
- }
217
-
218
213
switch mode {
219
214
case v1alpha2 .VMOPRestoreModeDryRun :
220
215
for _ , e := range DryRunIgnoredErrors {
You can’t perform that action at this time.
0 commit comments