Browse files

Installation filter is ignored

  • Loading branch information...
1 parent 6a0b877 commit 4891bda3b9d74ac292669d8117e17c944277599d @dain committed Apr 5, 2012
View
2 galaxy-coordinator/src/main/java/com/proofpoint/galaxy/coordinator/Coordinator.java
@@ -417,7 +417,7 @@ public AgentStatus terminateAgent(String agentId)
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) {

0 comments on commit 4891bda

Please sign in to comment.