Skip to content
Snippets Groups Projects
Commit a7b21cf7 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added 'close()' instruction.

parent 6644024e
Branches
Tags
No related merge requests found
Pipeline #2229 passed
......@@ -155,6 +155,7 @@ class TapeClient(object):
else:
for f in fileList:
fp.write(f"{f}\n")
fp.close()
self.copy(f"./{tmp}", f"/tmp/{tmp}")
os.remove(f"./{tmp}")
cmd = f"{self.EEADM} migrate /tmp/{tmp} -p {tapePool}"
......@@ -188,6 +189,7 @@ class TapeClient(object):
else:
for f in fileList:
fp.write(f"{f}\n")
fp.close()
self.copy(f"./{tmp}", f"/tmp/{tmp}")
os.remove(f"./{tmp}")
cmd = f"{self.EEADM} recall /tmp/{tmp}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment