Skip to content

Commit

Permalink
Merge pull request #7584 from andresailer/int_FixGetDBs
Browse files Browse the repository at this point in the history
[9.0] fix getMonitoringDB, getPilotAgentsDB returning None
  • Loading branch information
fstagni authored Apr 18, 2024
2 parents 46b55a3 + e9f2084 commit 347fdc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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")
4 changes: 3 additions & 1 deletion src/DIRAC/WorkloadManagementSystem/Client/ServerUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ def getPilotAgentsDB():
if gPilotAgentsDB and gPilotAgentsDB._connected:
return gPilotAgentsDB
except Exception:
return Client(url="WorkloadManagement/PilotManager")
pass

return Client(url="WorkloadManagement/PilotManager")

0 comments on commit 347fdc2

Please sign in to comment.