Skip to content

Commit

Permalink
HPCC-31671 Add resolved "CommandMessage" field to GetDFUWorkunits res…
Browse files Browse the repository at this point in the history
…ult.

Tested locally

Signed-off-by: Attila Vamos <[email protected]>
  • Loading branch information
AttilaVamos committed Apr 26, 2024
1 parent 2ca3375 commit feb94f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion esp/services/ws_fs/ws_fsService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,14 @@ bool CFileSprayEx::onGetDFUWorkunits(IEspContext &context, IEspGetDFUWorkunits &
resultWU->setID(wu->queryId());
StringBuffer jobname, user, cluster;
resultWU->setJobName(wu->getJobName(jobname).str());
resultWU->setCommand(wu->getCommand());
DFUcmd command = wu->getCommand();
resultWU->setCommand(command);
if (version >= 1.03)
{
StringBuffer cmdStr;
encodeDFUcommand(command, cmdStr);
resultWU->setCommandMessage(cmdStr.str());
}
resultWU->setUser(wu->getUser(user).str());

const char* clusterName = wu->getClusterName(cluster).str();
Expand Down

0 comments on commit feb94f9

Please sign in to comment.