Skip to content

Commit

Permalink
Bump version. Also use correct version in field
Browse files Browse the repository at this point in the history
  • Loading branch information
jackburton79 committed May 13, 2024
1 parent e55ac37 commit 71beba4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <unistd.h>


const char* kVersion = "1.9.9-dev";
const char* kVersion = "2.0.0";

std::string Agent::sAgentString;

Expand Down
6 changes: 3 additions & 3 deletions Inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
* Author: Stefano Ceccherini
*/

#include <Components.h>
#include "Agent.h"
#include "Components.h"
#include "Configuration.h"
#include "Inventory.h"
#include "Logger.h"
#include "NetworkInterface.h"
#include "NetworkRoster.h"
Expand All @@ -29,7 +30,6 @@
#include <memory>
#include <unistd.h>

#include "Inventory.h"
#include "tinyxml2/tinyxml2.h"


Expand Down Expand Up @@ -104,7 +104,7 @@ Inventory::Build(bool noSoftware)
// TODO: get the real version of the agent

tinyxml2::XMLElement* versionClient = fDocument->NewElement("VERSIONCLIENT");
versionClient->LinkEndChild(fDocument->NewText("1.9.9"));
versionClient->LinkEndChild(fDocument->NewText(Agent::Version().c_str()));
fContent->LinkEndChild(versionClient);

_AddAccountInfo();
Expand Down

0 comments on commit 71beba4

Please sign in to comment.