Skip to content

Commit 9313d30

Browse files
kmrozioj
authored andcommitted
wisdom: pass size (numOfHosts) to query
Sister commit to open-wisdom@issue#21.
1 parent b729c0d commit 9313d30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wisdom/wisdom.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ func (h *WisdomHosts) Hosts(scope string, size int) ([]string, error) {
4646
q.Set("category", h.category)
4747
q.Set("type", h.hostType)
4848
q.Set("limit", "1000") // the actual limit is much lower, but we want everything
49+
q.Set("min", strconv.Itoa(size))
4950
if scope != "" {
5051
q.Set("family", scope)
5152
}

0 commit comments

Comments
 (0)