From 9ed707a58875540b5bc71796336d3ffa75b2f3f5 Mon Sep 17 00:00:00 2001 From: Steven Murray <Steven.Murray@cern.ch> Date: Wed, 22 May 2019 21:04:05 +0200 Subject: [PATCH] Added disabled column to output of cta-admin logicallibrary ls --- xroot_plugins/XrdSsiCtaRequestMessage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xroot_plugins/XrdSsiCtaRequestMessage.cpp b/xroot_plugins/XrdSsiCtaRequestMessage.cpp index eb6bb68aad..fc7e704a6b 100644 --- a/xroot_plugins/XrdSsiCtaRequestMessage.cpp +++ b/xroot_plugins/XrdSsiCtaRequestMessage.cpp @@ -1251,12 +1251,13 @@ void RequestMessage::processLogicalLibrary_Ls(const cta::admin::AdminCmd &adminc { std::vector<std::vector<std::string>> responseTable; std::vector<std::string> header = { - "name","c.user","c.host","c.time","m.user","m.host","m.time","comment" + "name","disabled","c.user","c.host","c.time","m.user","m.host","m.time","comment" }; if(has_flag(OptionBoolean::SHOW_HEADER)) responseTable.push_back(header); for(auto it = list.cbegin(); it != list.cend(); it++) { std::vector<std::string> currentRow; currentRow.push_back(it->name); + currentRow.push_back(std::to_string(it->isDisabled)); addLogInfoToResponseRow(currentRow, it->creationLog, it->lastModificationLog); currentRow.push_back(it->comment); responseTable.push_back(currentRow); -- GitLab