Commit a7b21cf7 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added 'close()' instruction.

parent 6644024e
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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}"