Skip to content

Commit

Permalink
fix wrong operation for getCollectionBy State (#205)
Browse files Browse the repository at this point in the history
/kind improvement

Signed-off-by: MrPresent-Han <chun.han@zilliz.com>
  • Loading branch information
MrPresent-Han authored Oct 13, 2023
1 parent 00f7442 commit 1d55c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion states/etcd/show/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (c *ComponentShow) CollectionCommand(ctx context.Context, p *CollectionPara
if p.DatabaseID > -1 && coll.DBID != p.DatabaseID {
return false
}
if p.State != "" && strings.EqualFold(p.State, coll.State.String()) {
if p.State != "" && !strings.EqualFold(p.State, coll.State.String()) {
return false
}
total++
Expand Down

0 comments on commit 1d55c1c

Please sign in to comment.