Skip to content

Commit

Permalink
We always set user now, no need for this check
Browse files Browse the repository at this point in the history
  • Loading branch information
jackburton79 committed Mar 29, 2024
1 parent 3f16891 commit dc00eb4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions inventoryformat/InventoryFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dc00eb4

Please sign in to comment.