From 915354071e0478357956e6c2787e3d8594547d36 Mon Sep 17 00:00:00 2001 From: Nikita Kryuchkov Date: Fri, 24 Jan 2020 20:15:41 +0400 Subject: [PATCH] Fix broken hypervisor after merging --- cmd/hypervisor/commands/gen-config.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/hypervisor/commands/gen-config.go b/cmd/hypervisor/commands/gen-config.go index 769cab4128..e6e223ca29 100644 --- a/cmd/hypervisor/commands/gen-config.go +++ b/cmd/hypervisor/commands/gen-config.go @@ -23,15 +23,13 @@ func init() { outputUsage := "path of output config file. Uses default of 'type' flag if unspecified." replaceUsage := "whether to allow rewrite of a file that already exists." configLocTypeUsage := fmt.Sprintf("config generation mode. Valid values: %v", pathutil.AllConfigLocationTypes()) + testEnv := "whether to use production or test deployment service." rootCmd.AddCommand(genConfigCmd) - genConfigCmd.Flags().StringVarP(&output, "output", "o", "", "path of output config file. Uses default of 'type' flag if unspecified.") - genConfigCmd.Flags().BoolVarP(&replace, "replace", "r", false, "whether to allow rewrite of a file that already exists.") - genConfigCmd.Flags().VarP(&configLocType, "type", "m", fmt.Sprintf("config generation mode. Valid values: %v", pathutil.AllConfigLocationTypes())) - genConfigCmd.Flags().BoolVarP(&testenv, "testing-environment", "t", false, "whether to use production or test deployment service.") genConfigCmd.Flags().StringVarP(&output, "output", "o", "", outputUsage) genConfigCmd.Flags().BoolVarP(&replace, "replace", "r", false, replaceUsage) genConfigCmd.Flags().VarP(&configLocType, "type", "m", configLocTypeUsage) + genConfigCmd.Flags().BoolVarP(&testenv, "testing-environment", "t", false, testEnv) } // nolint:gochecknoglobals