diff --git a/esp/services/ws_fs/ws_fsService.cpp b/esp/services/ws_fs/ws_fsService.cpp index 4a4fe36c8cc..43e500e94b2 100644 --- a/esp/services/ws_fs/ws_fsService.cpp +++ b/esp/services/ws_fs/ws_fsService.cpp @@ -1109,7 +1109,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();