1d87979efe
resolves: RHEL-32105
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From 5672d89531ebe560aa4437a82009bdf6532983d1 Mon Sep 17 00:00:00 2001
|
|
From: Nir Soffer <nsoffer@redhat.com>
|
|
Date: Sat, 6 Apr 2024 17:15:45 +0300
|
|
Subject: [PATCH] -o rhv-upload: Don't share transfer.json (#49)
|
|
|
|
Use unique v2vtransferN.json for every transfer, like like
|
|
out.paramsN.json. If we keep the temporary files after the import, the
|
|
content of the file can help debugging.
|
|
|
|
Related to #46
|
|
---
|
|
output/output_rhv_upload.ml | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/output/output_rhv_upload.ml b/output/output_rhv_upload.ml
|
|
index 7a148b1e..f8bff24f 100644
|
|
--- a/output/output_rhv_upload.ml
|
|
+++ b/output/output_rhv_upload.ml
|
|
@@ -394,7 +394,7 @@ See also the virt-v2v-output-rhv(1) manual.");
|
|
(fun chan -> output_string chan (JSON.string_of_doc json_params));
|
|
|
|
(* Start the transfer. *)
|
|
- let transfer_json = dir // "v2vtransfer.json" in
|
|
+ let transfer_json = dir // sprintf "v2vtransfer%d.json" i in
|
|
let fd = Unix.openfile transfer_json [O_WRONLY; O_CREAT] 0o600 in
|
|
if Python_script.run_command ~stdout_fd:fd
|
|
transfer_script json_params [] <> 0 then
|