Skip to content

Commit 6aa7241

Browse files
committed
fix adapter issue
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
1 parent 6435f44 commit 6aa7241

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

models/meshmodel/registry/host.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package registry
22

33
import (
4-
"errors"
54
"fmt"
65
"time"
76
"encoding/json"
@@ -60,8 +59,8 @@ func (h *Host) AfterFind(tx *gorm.DB) error {
6059
h.IHost = ArtifactHub{}
6160
case "kubernetes":
6261
h.IHost = Kubernetes{}
63-
default:
64-
return ErrUnknownHost(errors.New("unable to find compatible host for the component"))
62+
default: // do nothing if the host is not pre-unknown. Currently adapters fall into this case.
63+
return nil
6564
}
6665
return nil
6766
}

0 commit comments

Comments
 (0)