Skip to content

Commit f741dcc

Browse files
authored
Merge pull request #7236 from aldbr/v8.0_FIX_ComponentSupervisionAgent
[8.0] fix: get setup from gConfig in ComponentSupervisionAgent
2 parents fdddd04 + 1e59b2f commit f741dcc

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/DIRAC/FrameworkSystem/Agent/ComponentSupervisionAgent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def logError(self, errStr, varMsg=""):
121121

122122
def beginExecution(self):
123123
"""Reload the configurations before every cycle."""
124-
self.setup = self.am_getOption("Setup", self.setup)
124+
self.setup = gConfig.getValue("/DIRAC/Setup", self.setup)
125125
self.enabled = self.am_getOption("EnableFlag", self.enabled)
126126
self.restartAgents = self.am_getOption("RestartAgents", self.restartAgents)
127127
self.restartExecutors = self.am_getOption("RestartExecutors", self.restartExecutors)

src/DIRAC/FrameworkSystem/Agent/test/Test_ComponentSupervisionAgent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def test_begin_execution(self):
8484
self.restartAgent.accounting["Junk"]["Funk"] = 1
8585
self.restartAgent.am_getOption = MagicMock()
8686
getOptionCalls = [
87-
call("Setup", self.restartAgent.setup),
8887
call("EnableFlag", True),
8988
call("MailTo", self.restartAgent.addressTo),
9089
call("MailFrom", self.restartAgent.addressFrom),

src/DIRAC/FrameworkSystem/ConfigTemplate.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ Agents
208208
PollingTime = 600
209209
# Overall enable or disable
210210
EnableFlag = False
211-
# Which setup to monitor
212-
Setup = DIRAC-Production
213211
# Email addresses receiving notifications
214212
MailTo =
215213
# Sender email address

0 commit comments

Comments
 (0)