[Libguestfs] [PATCH] vCenter: pass user name to nbdkit curl plugin

Tomáš Golembiovský tgolembi at redhat.com
Mon Jan 20 15:54:35 UTC 2020


Signed-off-by: Tomáš Golembiovský <tgolembi at redhat.com>
---
 v2v/vCenter.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/v2v/vCenter.ml b/v2v/vCenter.ml
index 89c5579b..d9bf12c1 100644
--- a/v2v/vCenter.ml
+++ b/v2v/vCenter.ml
@@ -79,7 +79,7 @@ let rec map_source ?bandwidth ?password_file dcPath uri server path =
 
   let nbdkit =
     Nbdkit.create_curl ?bandwidth ?cookie:session_cookie ~password ~sslverify
-                       https_url in
+                       ?user:uri.uri_user https_url in
   let qemu_uri = Nbdkit.run nbdkit in
 
   (* Return the struct. *)
-- 
2.24.1





More information about the Libguestfs mailing list