]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix error in EDF NRT test Bug9100_DumpComputePosition.py
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 25 Jan 2022 13:15:07 +0000 (14:15 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 25 Jan 2022 13:15:07 +0000 (14:15 +0100)
src/KernelHelpers/SALOME_KernelServices.cxx

index 3b12354a07a574b1031c6d71422d10b7c3cddb40..fdb2d275e201b63c108a6a05ec4e1a6dd14a61c3 100644 (file)
@@ -22,6 +22,7 @@
 #include "SALOME_KernelServices.hxx"
 #include "SALOME_Fake_NamingService.hxx"
 #include "Utils_SALOME_Exception.hxx"
+#include "KernelBasis.hxx"
 
 #include <map>
 #include <memory>
@@ -51,7 +52,10 @@ namespace KERNEL {
   {
     if ( !_naming_service.get() )
     {
-      _naming_service.reset( new SALOME_NamingService(getORB()) );
+      if(getSSLMode())
+        _naming_service.reset( new SALOME_Fake_NamingService );
+      else
+        _naming_service.reset( new SALOME_NamingService(getORB()) );
     }
     return _naming_service.get();
   }