Skip to content

Commit 27d0a7c

Browse files
committed
feat(api): add saving and restoring VD's ownerref
Signed-off-by: Dmitry Lopatin <dmitry.lopatin@flant.com>
1 parent afcf479 commit 27d0a7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

images/virtualization-artifact/pkg/controller/service/restorer/snapshot_resources.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ var RetryErrors = []error{
305305
}
306306

307307
func shouldIgnoreError(mode v1alpha2.SnapshotOperationMode, err error) bool {
308-
switch mode {
309-
case v1alpha2.SnapshotOperationModeBestEffort:
308+
if mode == v1alpha2.SnapshotOperationModeBestEffort {
310309
for _, e := range BestEffortIgnoredErrors {
311310
if errors.Is(err, e) {
312311
return true

0 commit comments

Comments
 (0)