We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d590971 commit 8f61789Copy full SHA for 8f61789
heartbeat/location.go
@@ -285,8 +285,8 @@ func pickTargets(service string, sites []site) *TargetInfo {
285
286
func alwaysPick(opts *NearestOptions) bool {
287
// Sites do not need further filtering if the query is already requesting
288
- // only virtual machines or a specific set of sites.
289
- return opts.Type == "virtual" || len(opts.Sites) > 0
+ // only virtual machines or a specific set of sites or a specific org.
+ return opts.Type == "virtual" || len(opts.Sites) > 0 || opts.Org != ""
290
}
291
292
// pickWithProbability returns true if a pseudo-random number in the interval
0 commit comments