]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: resource list of machines must contain actual hostname, not only localhost
authorprascle <prascle>
Wed, 4 Feb 2009 17:47:38 +0000 (17:47 +0000)
committerprascle <prascle>
Wed, 4 Feb 2009 17:47:38 +0000 (17:47 +0000)
src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx

index 1602fcce938363c22fbd8cff10caddecc16e1055..a80bc83bfe72d3fa5f97dcaa75fb8b1298648b60 100755 (executable)
@@ -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;