[Pkg-libvirt-commits] [libguestfs] 38/59: v2v: -i libvirt vcenter: Change 'esx:' to 'vcenter:' in errors/warnings.

Hilko Bengen bengen at moszumanska.debian.org
Wed Nov 26 22:04:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit 1072d8e5231840f73fbc1ea3d1adf3af4e1180c2
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue Nov 4 21:21:20 2014 +0000

    v2v: -i libvirt vcenter: Change 'esx:' to 'vcenter:' in errors/warnings.
    
    'esx' is inaccurate.
    
    (cherry picked from commit c58d335952194b9556db78abde75637921ab4eca)
---
 v2v/input_libvirt_vcenter_https.ml | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/v2v/input_libvirt_vcenter_https.ml b/v2v/input_libvirt_vcenter_https.ml
index 7f93439..3ecbbd0 100644
--- a/v2v/input_libvirt_vcenter_https.ml
+++ b/v2v/input_libvirt_vcenter_https.ml
@@ -96,26 +96,26 @@ let rec get_session_cookie =
       let status = !status in
       if status = "" then (
         dump_response stderr;
-        error (f_"esx: no status code in output of 'curl' command.  Is 'curl' installed?")
+        error (f_"vcenter: no status code in output of 'curl' command.  Is 'curl' installed?")
       );
 
       if status = "401" then (
         dump_response stderr;
         if uri.uri_user <> None then
-          error (f_"esx: incorrect username or password")
+          error (f_"vcenter: incorrect username or password")
         else
-          error (f_"esx: incorrect username or password.  You might need to specify the username in the URI like this: %s://USERNAME@[etc]")
+          error (f_"vcenter: incorrect username or password.  You might need to specify the username in the URI like this: %s://USERNAME@[etc]")
             scheme
       );
 
       if status = "404" then (
         dump_response stderr;
-        error (f_"esx: URL not found: %s") url
+        error (f_"vcenter: URL not found: %s") url
       );
 
       if status <> "200" then (
         dump_response stderr;
-        error (f_"esx: invalid response from server")
+        error (f_"vcenter: invalid response from server")
       );
 
       (* Get the cookie. *)
@@ -130,7 +130,7 @@ let rec get_session_cookie =
       ) lines;
       if !session_cookie = "" then (
         dump_response stderr;
-        warning (f_"esx: could not read session cookie from the vCenter Server, conversion may consume all sessions on the server and fail part way through");
+        warning (f_"vcenter: could not read session cookie from the vCenter Server, conversion may consume all sessions on the server and fail part way through");
         None
       )
       else
@@ -177,7 +177,7 @@ let get_datacenter uri scheme =
   | "vpx" ->           (* Hopefully the first part of the path. *)
     (match uri.uri_path with
     | None ->
-      warning (f_"esx: URI (-ic parameter) contains no path, so we cannot determine the datacenter name");
+      warning (f_"vcenter: URI (-ic parameter) contains no path, so we cannot determine the datacenter name");
       default_dc
     | Some path ->
       let path =
@@ -269,7 +269,7 @@ let map_source_to_uri ?readahead verbose password uri scheme server path =
       | Some cookie -> ("file.cookie", JSON.String cookie) :: json_params in
 
     if verbose then
-      printf "esx: json parameters: %s\n" (JSON.string_of_doc json_params);
+      printf "vcenter: json parameters: %s\n" (JSON.string_of_doc json_params);
 
     (* Turn the JSON parameters into a 'json:' protocol string.
      * Note this requires qemu-img >= 2.1.0.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list