We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 17e86b6 + 58d2546 commit be1d951Copy full SHA for be1d951
src/DIRAC/WorkloadManagementSystem/Agent/PilotSyncAgent.py
@@ -98,7 +98,9 @@ def execute(self):
98
self.log.info("Moving pilot files", f"to {self.saveDir}")
99
for tf in allFiles:
100
# this overrides the destinations
101
- shutil.move(tf, os.path.join(self.saveDir, os.path.basename(tf)))
+ # use copy & remove rather than move to reset SELinux context on files
102
+ shutil.copy(tf, os.path.join(self.saveDir, os.path.basename(tf)))
103
+ os.remove(tf)
104
105
# Here, attempting upload somewhere, and somehow
106
for server in self.uploadLocations:
0 commit comments