Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Installation filter is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Apr 6, 2012
1 parent 6a0b877 commit 4891bda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ private List<RemoteAgent> selectAgents(Predicate<AgentStatus> filter, Installati
List<RemoteAgent> targetAgents = newArrayList();
List<RemoteAgent> allAgents = newArrayList(filter(this.agents.values(), filterAgentsBy(filter)));
if (!allowDuplicateInstallationsOnAnAgent) {
allAgents = newArrayList(filter(this.agents.values(), filterAgentsWithAssignment(installation)));
allAgents = newArrayList(filter(allAgents, filterAgentsWithAssignment(installation)));
}
Collections.shuffle(allAgents);
for (RemoteAgent agent : allAgents) {
Expand Down

0 comments on commit 4891bda

Please sign in to comment.