Permalink
Browse files

Fix version util to allow for null agent id

  • Loading branch information...
1 parent 74206a1 commit e77b77030f8d3a6774731971eaa13f0cfbe43678 @dain dain committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 galaxy-shared/src/main/java/com/proofpoint/galaxy/shared/VersionsUtil.java
@@ -121,7 +121,7 @@ public static String createAgentsVersion(Iterable<AgentStatus> agents)
// canonicalize agent order
Map<String, String> agentVersions = new TreeMap<String, String>();
for (AgentStatus agent : agents) {
- agentVersions.put(agent.getAgentId(), agent.getVersion());
+ agentVersions.put(agent.getAgentId() + agent.getInstanceId(), agent.getVersion());
}
return DigestUtils.md5Hex(agentVersions.values().toString());
}

0 comments on commit e77b770

Please sign in to comment.