Merge branch '116-Remote_config-did-not-work-at-Pandora-Agent-for-Windows' into 'develop'

Resolve "Remote_config did not work at Pandora Agent for Windows."

Closes #116

See merge request !357
This commit is contained in:
nramon 2017-04-11 12:29:08 +02:00
commit fc5635381a
1 changed files with 3 additions and 3 deletions

View File

@ -300,7 +300,7 @@ Pandora_Windows_Service::pandora_init () {
}
// Get the agent alias.
conf->getValue ("agent_alias");
agent_alias = conf->getValue ("agent_alias");
if (agent_alias == "") {
agent_alias = Pandora_Windows_Info::getSystemName ();
this->conf->setValue("agent_alias", agent_alias);
@ -441,7 +441,7 @@ Pandora_Windows_Service::getXmlHeader () {
agent_name = conf->getValue ("agent_name");
// Get agent alias
conf->getValue ("agent_alias");
agent_alias = conf->getValue ("agent_alias");
// Get parent agent name
parent_agent_name = conf->getValue ("parent_agent_name");
@ -1519,7 +1519,7 @@ Pandora_Windows_Service::checkConfig (string file) {
}
/* Get agent name */
tmp = conf->getValue ("agent_name");
agent_name = conf->getValue ("agent_name");
/* Error getting agent name */