Skip to content

Commit 85f12a6

Browse files
committed
fix: Fixes from reviews
1 parent 15bbfa0 commit 85f12a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DIRAC/WorkloadManagementSystem/Agent/StatesAccountingAgent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def initialize(self):
5050
self.am_setOption("PollingTime", 900)
5151

5252
self.backends = self.am_getOption("Backends", "Accounting").replace(" ", "").split(",")
53-
self.monitoringEnabled = Operations().getValue("monitoringEnabled", False)
53+
self.monitoringEnabled = Operations().getValue("MonitoringEnabled", False)
5454

5555
messageQueue = self.am_getOption("MessageQueue", "dirac.wmshistory")
5656

@@ -77,8 +77,8 @@ def execute(self):
7777
"""Main execution method"""
7878

7979
# PilotsHistory to Monitoring
80-
self.log.info("Committing PilotsHistory to Monitoring")
8180
if self.monitoringEnabled:
81+
self.log.info("Committing PilotsHistory to Monitoring")
8282
result = PilotAgentsDB.getSummarySnapshot(self.__pilotKeyFields)
8383
now = Time.dateTime()
8484
if not result["OK"]:

0 commit comments

Comments
 (0)