Skip to content

Commit

Permalink
Merge pull request #7934 from chaen/diracxRPCStub
Browse files Browse the repository at this point in the history
fix (RMS): call the correct executeRPCStub
  • Loading branch information
fstagni authored Dec 5, 2024
2 parents c98f5f8 + e24ec7a commit d514ece
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
from DIRAC import S_ERROR, S_OK, gConfig
from DIRAC.ConfigurationSystem.Client.ConfigurationData import gConfigurationData
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getDNForUsername
from DIRAC.Core.Base.Client import executeRPCStub
from DIRAC.Core.Base.Client import executeRPCStub as disetExecuteRPCStub
from DIRAC.Core.Utilities import DEncode
from DIRAC.Core.Security.DiracX import executeRPCStub
from DIRAC.Core.Security.DiracX import executeRPCStub as diracxExecuteRPCStub
from DIRAC.RequestManagementSystem.private.OperationHandlerBase import OperationHandlerBase

########################################################################
Expand Down Expand Up @@ -76,12 +76,12 @@ def __call__(self):
# ForwardDiset is supposed to be used with a host certificate
useServerCertificate = gConfig.useServerCertificate()
gConfigurationData.setOptionInCFG("/DIRAC/Security/UseServerCertificate", "true")
forward = executeRPCStub(stub)
forward = disetExecuteRPCStub(stub)
if not useServerCertificate:
gConfigurationData.setOptionInCFG("/DIRAC/Security/UseServerCertificate", "false")
# DiracX stub
elif isinstance(stub, dict):
forward = executeRPCStub(stub)
forward = diracxExecuteRPCStub(stub)
else:
raise TypeError("Unknwon type of stub")

Expand Down

0 comments on commit d514ece

Please sign in to comment.