mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dont return not found error in mode 2 (#100758)
* dual writer: dont return not found error in mode 2 when failing to find object in unistore
This commit is contained in:
parent
cd30f3839d
commit
77fd572973
@ -137,7 +137,7 @@ func (d *DualWriterMode2) Get(ctx context.Context, name string, options *metav1.
|
||||
}
|
||||
}()
|
||||
|
||||
return objLegacy, err
|
||||
return objLegacy, nil
|
||||
}
|
||||
|
||||
// List overrides the behavior of the generic DualWriter.
|
||||
|
@ -122,7 +122,6 @@ func TestMode2_Get(t *testing.T) {
|
||||
m.On("Get", mock.Anything, input, mock.Anything).Return(nil, apierrors.NewNotFound(
|
||||
schema.GroupResource{Group: "", Resource: "pods"}, "not-found"))
|
||||
},
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "should return an error when getting an object from both the LegacyStorage and Storage fails",
|
||||
|
Loading…
Reference in New Issue
Block a user