Skip to content

Commit

Permalink
fix: datastore bucket not error
Browse files Browse the repository at this point in the history
  • Loading branch information
itnpeople committed Oct 18, 2022
1 parent 9cb9b11 commit 97a82ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/model/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ func (self *Cluster) Select() (bool, error) {
key := getStoreClusterKey(self.Namespace, self.Name)
keyValue, err := app.CBStore.Get(key)
if err != nil {
return exists, err
if !strings.Contains(err.Error(), "bucket not") {
return exists, err
}
}
exists = (keyValue != nil)
if exists {
Expand Down

0 comments on commit 97a82ad

Please sign in to comment.