From 9f04b27e39af1feb20d897a23424df08f4f4013d Mon Sep 17 00:00:00 2001 From: prascle Date: Wed, 4 Feb 2009 17:47:38 +0000 Subject: [PATCH] PR: resource list of machines must contain actual hostname, not only localhost --- src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.39.2