[Pkg-libvirt-commits] [libguestfs] 73/179: v2v: -i ova: Preserve the order of disks/removable/NICs from the source OVF.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 31 19:08:25 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 59015939abc63de27fc6e8329a23f3087fd3f91a
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Oct 15 21:04:33 2014 +0200

    v2v: -i ova: Preserve the order of disks/removable/NICs from the source OVF.
    
    Because we built the lists up backwards, we ought to reverse them
    before passing them out of the module.
---
 v2v/input_ova.ml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/v2v/input_ova.ml b/v2v/input_ova.ml
index d5efcb2..c02224e 100644
--- a/v2v/input_ova.ml
+++ b/v2v/input_ova.ml
@@ -220,9 +220,9 @@ object
       s_vcpu = vcpu;
       s_features = []; (* XXX *)
       s_display = None; (* XXX *)
-      s_disks = !disks;
-      s_removables = !removables;
-      s_nics = !nics;
+      s_disks = List.rev !disks;
+      s_removables = List.rev !removables;
+      s_nics = List.rev !nics;
     } in
 
     source

-- 
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