From dc00eb49ae44273d1f428bb174add22ea2c4ba5f Mon Sep 17 00:00:00 2001 From: JackBurton79 Date: Fri, 29 Mar 2024 22:37:01 +0100 Subject: [PATCH] We always set user now, no need for this check --- inventoryformat/InventoryFormat.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/inventoryformat/InventoryFormat.cpp b/inventoryformat/InventoryFormat.cpp index a691318..9fc3c2e 100644 --- a/inventoryformat/InventoryFormat.cpp +++ b/inventoryformat/InventoryFormat.cpp @@ -921,10 +921,6 @@ InventoryFormat::_AddProcessesInfo() tinyxml2::XMLElement* user = fDocument->NewElement("USER"); std::string userString = processInfo.user.c_str(); - if (userString.empty()) { - // TODO: not nice. GLPI doesn't like if this is empty - userString = "root"; - } user->LinkEndChild(fDocument->NewText(userString.c_str())); process->LinkEndChild(user);