From d56895fe9cc009da1fe90947a0b76f56e36fb3f2 Mon Sep 17 00:00:00 2001 From: Cristiano Urban Date: Fri, 23 Apr 2021 17:04:28 +0200 Subject: [PATCH] Minor changes- Signed-off-by: Cristiano Urban --- transfer_service/tape_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transfer_service/tape_client.py b/transfer_service/tape_client.py index fbbad95..10d4bfa 100644 --- a/transfer_service/tape_client.py +++ b/transfer_service/tape_client.py @@ -98,9 +98,9 @@ class TapeClient(object): fp = open(tmp, "a") for f in fileList: fp.write(f"{f}\n") - fp.close() + fp.close() + self.copy(f"./{tmp}", f"/tmp/{tmp}") os.remove(f"./{tmp}") - self.copy("./" + tmp, "/tmp/" + tmp) cmd = f"{self.EEADM} recall /tmp/{tmp}" stdin, stdout, stderr = self.client.exec_command(cmd) -- GitLab