fix(bolt) EE-2415 return nil err when resource controller not found in db (#6422)

Co-authored-by: Simon Meng <simon.meng@portainer.io>
pull/6436/head
cong meng 3 years ago committed by GitHub
parent a79aa221d3
commit 1e21aeb7e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,6 @@ import (
"fmt"
portainer "github.com/portainer/portainer/api"
"github.com/portainer/portainer/api/dataservices/errors"
"github.com/sirupsen/logrus"
)
@ -79,9 +78,6 @@ func (service *Service) ResourceControlByResourceIDAndType(resourceID string, re
if err == stop {
return resourceControl, nil
}
if err == nil {
return nil, errors.ErrObjectNotFound
}
return nil, err
}

Loading…
Cancel
Save