Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix version util to allow for null agent id

  • Loading branch information...
commit e77b77030f8d3a6774731971eaa13f0cfbe43678 1 parent 74206a1
Dain Sundstrom authored April 02, 2012
2  galaxy-shared/src/main/java/com/proofpoint/galaxy/shared/VersionsUtil.java
@@ -121,7 +121,7 @@ public static String createAgentsVersion(Iterable<AgentStatus> agents)
121 121
         // canonicalize agent order
122 122
         Map<String, String> agentVersions = new TreeMap<String, String>();
123 123
         for (AgentStatus agent : agents) {
124  
-            agentVersions.put(agent.getAgentId(), agent.getVersion());
  124
+            agentVersions.put(agent.getAgentId() + agent.getInstanceId(), agent.getVersion());
125 125
         }
126 126
         return DigestUtils.md5Hex(agentVersions.values().toString());
127 127
     }

0 notes on commit e77b770

Please sign in to comment.
Something went wrong with that request. Please try again.