We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6435f44 commit 6aa7241Copy full SHA for 6aa7241
models/meshmodel/registry/host.go
@@ -1,7 +1,6 @@
1
package registry
2
3
import (
4
- "errors"
5
"fmt"
6
"time"
7
"encoding/json"
@@ -60,8 +59,8 @@ func (h *Host) AfterFind(tx *gorm.DB) error {
60
59
h.IHost = ArtifactHub{}
61
case "kubernetes":
62
h.IHost = Kubernetes{}
63
- default:
64
- return ErrUnknownHost(errors.New("unable to find compatible host for the component"))
+ default: // do nothing if the host is not pre-unknown. Currently adapters fall into this case.
+ return nil
65
}
66
return nil
67
0 commit comments