Blame SOURCES/0035-v2v-cmdline-Move-definition-to-before-its-only-use.patch

97ae69
From 128f7736445649001261195b5dfeb0e7d34bbedc Mon Sep 17 00:00:00 2001
97ae69
From: "Richard W.M. Jones" <rjones@redhat.com>
97ae69
Date: Thu, 22 Mar 2018 10:28:36 +0000
97ae69
Subject: [PATCH] v2v: cmdline: Move definition to before its only use.
97ae69
97ae69
(cherry picked from commit 3167ce1f91667de4c4fe1885bb33c06ee6fa38c5)
97ae69
---
97ae69
 v2v/cmdline.ml | 4 ++--
97ae69
 1 file changed, 2 insertions(+), 2 deletions(-)
97ae69
97ae69
diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
97ae69
index bfdc250fc..9bd0e8afc 100644
97ae69
--- a/v2v/cmdline.ml
97ae69
+++ b/v2v/cmdline.ml
97ae69
@@ -81,7 +81,6 @@ let parse_cmdline () =
97ae69
   let set_vdsm_compat s = vdsm_compat := s in
97ae69
 
97ae69
   let vdsm_ovf_flavour = ref Create_ovf.RHVExportStorageDomain in
97ae69
-  let ovf_flavours_str = String.concat "|" Create_ovf.ovf_flavours in
97ae69
   let set_vdsm_ovf_flavour arg =
97ae69
     vdsm_ovf_flavour := Create_ovf.ovf_flavour_of_string arg in
97ae69
 
97ae69
@@ -183,7 +182,8 @@ let parse_cmdline () =
97ae69
   let i_options =
97ae69
     String.concat "|" (Modules_list.input_modules ())
97ae69
   and o_options =
97ae69
-    String.concat "|" (Modules_list.output_modules ()) in
97ae69
+    String.concat "|" (Modules_list.output_modules ())
97ae69
+  and ovf_flavours_str = String.concat "|" Create_ovf.ovf_flavours in
97ae69
 
97ae69
   let argspec = [
97ae69
     [ S 'b'; L"bridge" ], Getopt.String ("in:out", add_bridge),
97ae69
-- 
c71420
2.20.1
97ae69