mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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