Skip to content

Commit 4b9d44d

Browse files
authored
Merge pull request #8599 from sfayer/fix_https
[int] Tidy up https use in runjoblocal
2 parents 44a4f40 + ca2354f commit 4b9d44d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/DIRAC/TransformationSystem/scripts/dirac_production_runjoblocal.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import os
99
import shutil
1010
import subprocess
11-
import ssl
1211

1312
from xml.etree import ElementTree as et
1413

@@ -59,17 +58,15 @@ def __downloadPilotScripts():
5958
Downloads the scripts necessary to configure the pilot
6059
"""
6160

62-
context = ssl._create_unverified_context()
6361
for fileName in [
6462
"dirac-pilot.py",
6563
"pilotCommands.py",
6664
"pilotTools",
6765
]:
6866
remoteFile = urlopen(
69-
os.path.join("https://raw.githubusercontent.com/DIRACGrid/Pilot/master/Pilot/", fileName),
67+
f"https://raw.githubusercontent.com/DIRACGrid/Pilot/master/Pilot/{fileName}",
7068
timeout=10,
71-
context=context,
72-
)
69+
) # nosec: B310
7370
with open(fileName, "wb") as localFile:
7471
localFile.write(remoteFile.read())
7572

0 commit comments

Comments
 (0)