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.
This commit is contained in:
Richard W.M. Jones
2014-10-15 21:04:33 +02:00
parent 516a95824a
commit 59015939ab

View File

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