Skip to content

Commit 02beecf

Browse files
committed
fix (PilotSync): actually use the includeMasterCS option
1 parent eeadb6c commit 02beecf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/DIRAC/WorkloadManagementSystem/Agent/PilotSyncAgent.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" This agent syncs CS and pilot files to a web server of your choice
1+
"""This agent syncs CS and pilot files to a web server of your choice
22
33
.. literalinclude:: ../ConfigTemplate.cfg
44
:start-after: ##BEGIN PilotSyncAgent
@@ -7,6 +7,7 @@
77
:caption: PilotsSyncAgent options
88
99
"""
10+
1011
import os
1112
import json
1213
import shutil
@@ -38,8 +39,8 @@ def initialize(self):
3839
self.workingDirectory = self.am_getOption("WorkDirectory")
3940
self.saveDir = self.am_getOption("SaveDirectory", self.saveDir)
4041
self.uploadLocations = self.am_getOption("UploadLocations", self.uploadLocations)
41-
includeMasterCS = self.am_getOption("IncludeMasterCS", self.includeMasterCS)
42-
if isinstance(includeMasterCS, str) and includeMasterCS.lower() in ["n", "no", "false"]:
42+
self.includeMasterCS = self.am_getOption("IncludeMasterCS", self.includeMasterCS)
43+
if isinstance(self.includeMasterCS, str) and self.includeMasterCS.lower() in ["n", "no", "false"]:
4344
self.includeMasterCS = False
4445

4546
self.certAndKeyLocation = getHostCertificateAndKeyLocation()

0 commit comments

Comments
 (0)