From: prascle Date: Wed, 4 Feb 2009 17:47:38 +0000 (+0000) Subject: PR: resource list of machines must contain actual hostname, not only localhost X-Git-Tag: CcarBeforeDocUpdate~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f04b27e39af1feb20d897a23424df08f4f4013d;p=modules%2Fkernel.git PR: resource list of machines must contain actual hostname, not only localhost --- diff --git a/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx b/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx index 1602fcce9..a80bc83bf 100755 --- a/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx +++ b/src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx @@ -317,7 +317,11 @@ void SALOME_ResourcesCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc) { _resources_list[_resource.HostName] = _resource; if(_resource.HostName == "localhost") - _resources_list[Kernel_Utils::GetHostname()] = _resource; + { + _resource.HostName = Kernel_Utils::GetHostname(); + _resource.DataForSort._hostName = Kernel_Utils::GetHostname(); + _resources_list[Kernel_Utils::GetHostname()] = _resource; + } } } else @@ -332,6 +336,7 @@ void SALOME_ResourcesCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc) iter != _resources_list.end(); iter++) { + std::cerr << (*iter).first << std::endl; std::cerr << (*iter).second.HostName << std::endl; std::cerr << (*iter).second.Alias << std::endl; std::cerr << (*iter).second.UserName << std::endl;