Skip to content

Commit 47c38c9

Browse files
committed
fix: removed dirac-install
1 parent f16a681 commit 47c38c9

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/DIRAC/WorkloadManagementSystem/Utilities/PilotCStoJSONSynchronizer.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
import tarfile
1111
import datetime
1212

13-
from urllib.request import urlopen
14-
1513
from git import Repo
1614

17-
from DIRAC import gLogger, gConfig, S_OK, S_ERROR
15+
from DIRAC import gLogger, gConfig, S_OK
1816
from DIRAC.ConfigurationSystem.Client.ConfigurationData import gConfigurationData
1917
from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations
2018
from DIRAC.ConfigurationSystem.Client.Helpers.Path import cfgPath
@@ -285,17 +283,6 @@ def syncScripts(self):
285283
scriptDir = os.path.join(pilotLocalRepo, self.pilotScriptPath, "*.py")
286284
for filename in glob.glob(scriptDir):
287285
tarFiles.append(filename)
288-
if not os.path.isfile(os.path.join(pilotLocalRepo, self.pilotScriptPath, "dirac-install.py")):
289-
290-
# Download dirac-install.py
291-
response = urlopen("https://raw.githubusercontent.com/DIRACGrid/management/master/dirac-install.py")
292-
code = response.getcode()
293-
if code > 200 or code >= 300:
294-
return S_ERROR("Failed to download dirac-install.py with code %s" % code)
295-
with open("dirac-install.py", "wb") as fp:
296-
fp.write(response.read())
297-
298-
tarFiles.append("dirac-install.py")
299286

300287
tarPath = os.path.join(self.workDir, "pilot.tar")
301288
with tarfile.TarFile(name=tarPath, mode="w") as tf:

0 commit comments

Comments
 (0)