This script adds the serverId to the data structure returned by the system.getScriptResults() API call. Currently, the array of results doesn't have a way to correlate which server the script output belongs to. This is a problem when multiple systems are scheduled for a single action.
/aron
diff --git a/java/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/ScriptResultSerializer.java index a7c8980..2c4e24f 100644 --- a/java/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/ScriptResultSerializer.java +++ b/java/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/ScriptResultSerializer.java @@ -52,6 +52,7 @@ public class ScriptResultSerializer implements XmlRpcCustomSerializer { throws XmlRpcException, IOException { ScriptResult scriptResult = (ScriptResult)value; SerializerHelper helper = new SerializerHelper(builtInSerializer); + helper.add("serverId", scriptResult.getServerId()); helper.add("startDate", scriptResult.getStartDate()); helper.add("stopDate", scriptResult.getStopDate()); helper.add("returnCode", scriptResult.getReturnCode());
_______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel