Skip to content

Commit

Permalink
Merge pull request #7578 from andresailer/8_fixgMDB
Browse files Browse the repository at this point in the history
[8.0] fix getMonitoringDB returning None
  • Loading branch information
fstagni authored Apr 18, 2024
2 parents 85bbc83 + be86e0e commit 749ce65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/DIRAC/MonitoringSystem/Client/ServerUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def getMonitoringDB():
if gMonitoringDB and gMonitoringDB._connected:
return gMonitoringDB
except Exception:
from DIRAC.Core.Base.Client import Client
pass

return Client(url="Monitoring/Monitoring")
from DIRAC.Core.Base.Client import Client

return Client(url="Monitoring/Monitoring")
8 changes: 6 additions & 2 deletions src/DIRAC/WorkloadManagementSystem/Client/ServerUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ def getPilotAgentsDB():
if gPilotAgentsDB and gPilotAgentsDB._connected:
return gPilotAgentsDB
except Exception:
return Client(url="WorkloadManagement/PilotManager")
pass

return Client(url="WorkloadManagement/PilotManager")


def getVirtualMachineDB():
Expand All @@ -23,4 +25,6 @@ def getVirtualMachineDB():
if gVirtualMachineDB and gVirtualMachineDB._connected:
return gVirtualMachineDB
except Exception:
return Client(url="WorkloadManagement/VirtualMachineManager")
pass

return Client(url="WorkloadManagement/VirtualMachineManager")

0 comments on commit 749ce65

Please sign in to comment.