]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: fix bug in resources manager when hostname==localhost
authorcaremoli <caremoli>
Tue, 28 Sep 2010 09:21:00 +0000 (09:21 +0000)
committercaremoli <caremoli>
Tue, 28 Sep 2010 09:21:00 +0000 (09:21 +0000)
src/ResourcesManager/SALOME_ResourcesCatalog_Handler.cxx

index ac6341bb6162a6d4c63bfe4fc6734b024e1089c2..20851ed2af1ed6e00c5a27289b732c3a463339a9 100755 (executable)
@@ -130,11 +130,6 @@ void SALOME_ResourcesCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc)
        if(_resource.HostName == "localhost")
        {
          _resource.HostName = Kernel_Utils::GetHostname();
-         if (_resource.Name == "localhost")
-         {
-           _resource.Name = Kernel_Utils::GetHostname();
-           _resource.DataForSort._Name = Kernel_Utils::GetHostname();
-         }
        }
        std::map<std::string, ParserResourcesType>::const_iterator iter = _resources_list.find(_resource.Name);
        if (iter != _resources_list.end())