[Pkg-libvirt-commits] [libguestfs] 67/179: v2v: --root ask: Number the guests in the list correctly.
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 31 19:08:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit 2b4ba9d692d1dfa08b19459305477fd22b6066d8
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Mon Oct 13 11:36:15 2014 +0200
v2v: --root ask: Number the guests in the list correctly.
Thanks: Junqin Zhou
---
v2v/v2v.ml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 5e16477..d78b26c 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -423,8 +423,8 @@ and inspect_source g root_choice =
fun i root ->
let prod = g#inspect_get_product_name root in
match prod with
- | "unknown" -> printf " [%d] %s\n" i root
- | prod -> printf " [%d] %s (%s)\n" i root prod
+ | "unknown" -> printf " [%d] %s\n" (i+1) root
+ | prod -> printf " [%d] %s (%s)\n" (i+1) root prod
) roots;
printf "\n";
let i = ref 0 in
--
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