Permalink
Browse files

[FIXED JENKINS-25064] Instead of constructing the toollocation key, j…

…ust use the existing descriptor
  • Loading branch information...
mrdfuse committed Oct 9, 2014
1 parent 30ee1f1 commit 73da69a23a67a7af32bc8df24fa9ff10906f6de9
Showing with 2 additions and 3 deletions.
  1. +2 −3 plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java
@@ -90,11 +90,10 @@ public void doCreateSlave(StaplerRequest req, StaplerResponse rsp, @QueryParamet
for (ToolInstallation inst : desc.getInstallations()) {
if (inst.getName().equals(toolLoc[0])) {
found = true;

String key = inst.getClass().getCanonicalName().toString() + "$DescriptorImpl@" + inst.getName();

String location = toolLoc[1];

ToolLocationNodeProperty.ToolLocation toolLocation = new ToolLocationNodeProperty.ToolLocation(key, location);
ToolLocationNodeProperty.ToolLocation toolLocation = new ToolLocationNodeProperty.ToolLocation(desc, inst.getName(), location);
result.add(toolLocation);
}
}

0 comments on commit 73da69a

Please sign in to comment.