//default resources
_resource.Clear();
- _resource.HostName = Kernel_Utils::GetHostname();
- _resource.Name = Kernel_Utils::GetHostname();
- _resource.DataForSort._Name = Kernel_Utils::GetHostname();
- _resources_list[Kernel_Utils::GetHostname()] = _resource;
+ _resource.HostName = Kernel_Utils::GetHostname();
+ _resource.Name = Kernel_Utils::GetHostname();
+ _resource.DataForSort._Name = Kernel_Utils::GetHostname();
+ _resources_list[Kernel_Utils::GetHostname()] = _resource;
// Get the document root node
xmlNodePtr aCurNode = xmlDocGetRootElement(theDoc);
bool Ok = ProcessMachine(aCurNode, _resource);
if (Ok)
{
- // Adding a resource
- if(_resource.HostName == "localhost")
- {
- _resource.HostName = Kernel_Utils::GetHostname();
- }
- std::map<std::string, ParserResourcesType>::const_iterator iter = _resources_list.find(_resource.Name);
- if (iter != _resources_list.end())
- RES_INFOS("Warning resource " << _resource.Name << " already added, keep last resource found !");
- _resources_list[_resource.Name] = _resource;
+ // Adding a resource
+ if(_resource.HostName == "localhost")
+ {
+ _resource.HostName = Kernel_Utils::GetHostname();
+ }
+ std::map<std::string, ParserResourcesType>::const_iterator iter = _resources_list.find(_resource.Name);
+ if (iter != _resources_list.end())
+ RES_INFOS("Warning resource " << _resource.Name << " already added, keep last resource found !");
+ _resources_list[_resource.Name] = _resource;
}
}
// Cas de la déclaration d'un cluster
_resource.Clear();
if(ProcessCluster(aCurNode, _resource))
{
- std::map<std::string, ParserResourcesType>::const_iterator iter = _resources_list.find(_resource.Name);
- if (iter != _resources_list.end())
- RES_INFOS("Warning resource " << _resource.Name << " already added, keep last resource found !");
- _resources_list[_resource.Name] = _resource;
+ std::map<std::string, ParserResourcesType>::const_iterator iter = _resources_list.find(_resource.Name);
+ if (iter != _resources_list.end())
+ RES_INFOS("Warning resource " << _resource.Name << " already added, keep last resource found !");
+ _resources_list[_resource.Name] = _resource;
}
}
aCurNode = aCurNode->next;
resource.Batch = ssh_batch;
else if (aBatch == "ccc")
resource.Batch = ccc;
+ else if (aBatch == "ll")
+ resource.Batch = ll;
else
resource.Batch = none;
}
case ssh_batch:
xmlNewProp(node, BAD_CAST test_batch, BAD_CAST "ssh_batch");
break;
+ case ll:
+ xmlNewProp(node, BAD_CAST test_batch, BAD_CAST "ll");
+ break;
default:
xmlNewProp(node, BAD_CAST test_batch, BAD_CAST "");
}