From 59015939abc63de27fc6e8329a23f3087fd3f91a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 15 Oct 2014 21:04:33 +0200 Subject: [PATCH] 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 d5efcb244..c02224e97 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