[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH 2/2] v2v: -o rhv-upload: use same tmpdir for Python scripts



Make use of the temporary directory of the rhv-upload mode also for the
Python scripts that the mode creates, instead of creating new
directories.
---
 v2v/output_rhv_upload.ml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/v2v/output_rhv_upload.ml b/v2v/output_rhv_upload.ml
index eec9c5c79..78e9145c6 100644
--- a/v2v/output_rhv_upload.ml
+++ b/v2v/output_rhv_upload.ml
@@ -106,19 +106,19 @@ class output_rhv_upload output_alloc output_conn
 
   (* Create Python scripts for precheck, vmcheck, plugin and create VM. *)
   let precheck_script =
-    Python_script.create ~name:"rhv-upload-precheck.py"
+    Python_script.create ~name:"rhv-upload-precheck.py" ~tmpdir
                          Output_rhv_upload_precheck_source.code in
   let vmcheck_script =
-    Python_script.create ~name:"rhv-upload-vmcheck.py"
+    Python_script.create ~name:"rhv-upload-vmcheck.py" ~tmpdir
                          Output_rhv_upload_vmcheck_source.code in
   let plugin_script =
-    Python_script.create ~name:"rhv-upload-plugin.py"
+    Python_script.create ~name:"rhv-upload-plugin.py" ~tmpdir
                          Output_rhv_upload_plugin_source.code in
   let createvm_script =
-    Python_script.create ~name:"rhv-upload-createvm.py"
+    Python_script.create ~name:"rhv-upload-createvm.py" ~tmpdir
                          Output_rhv_upload_createvm_source.code in
   let deletedisks_script =
-    Python_script.create ~name:"rhv-upload-deletedisks.py"
+    Python_script.create ~name:"rhv-upload-deletedisks.py" ~tmpdir
                          Output_rhv_upload_deletedisks_source.code in
 
   (* Check that the 'ovirtsdk4' Python module is available. *)
-- 
2.21.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]