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

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