update return and apiserver

Signed-off-by: f10atin9 <f10atin9@kubesphere.io>
This commit is contained in:
f10atin9
2021-09-06 10:44:46 +08:00
parent faca834364
commit 463feb8a61
2 changed files with 2 additions and 5 deletions

View File

@@ -42,10 +42,7 @@ func New(informer informers.SharedInformerFactory) v1alpha3.Interface {
func (p *persistentVolumeGetter) Get(namespace, name string) (runtime.Object, error) {
pv, err := p.informers.Core().V1().PersistentVolumes().Lister().Get(name)
if err != nil {
return pv, err
}
return pv, nil
return pv, err
}
func (p *persistentVolumeGetter) List(namespace string, query *query.Query) (*api.ListResult, error) {