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 320ecd4 + 9d7bad2 commit 0eafb3aCopy full SHA for 0eafb3a
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