Skip to content

Commit

Permalink
fix adapter issue
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
  • Loading branch information
theBeginner86 committed Sep 28, 2023
1 parent 6435f44 commit 6aa7241
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions models/meshmodel/registry/host.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package registry

import (
"errors"
"fmt"
"time"
"encoding/json"
Expand Down Expand Up @@ -60,8 +59,8 @@ func (h *Host) AfterFind(tx *gorm.DB) error {
h.IHost = ArtifactHub{}
case "kubernetes":
h.IHost = Kubernetes{}
default:
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
}
return nil
}
Expand Down

0 comments on commit 6aa7241

Please sign in to comment.