From feb94f9d9091174724ab510844d05f2040c5252b Mon Sep 17 00:00:00 2001 From: Attila Vamos Date: Fri, 26 Apr 2024 19:19:17 +0100 Subject: [PATCH] HPCC-31671 Add resolved "CommandMessage" field to GetDFUWorkunits result. Tested locally Signed-off-by: Attila Vamos --- esp/services/ws_fs/ws_fsService.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/esp/services/ws_fs/ws_fsService.cpp b/esp/services/ws_fs/ws_fsService.cpp index 4a83c2cc65c..c493b5cd666 100644 --- a/esp/services/ws_fs/ws_fsService.cpp +++ b/esp/services/ws_fs/ws_fsService.cpp @@ -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();