Skip to content

Commit

Permalink
Revert "pass command line args (flyteorg#63)" (flyteorg#115)
Browse files Browse the repository at this point in the history
This reverts commit 0aab1bc.
  • Loading branch information
wild-endeavor authored Apr 16, 2020
1 parent 3f932eb commit 0595256
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/controller/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,12 @@ func init() {
rootCmd.AddCommand(viper.GetConfigCommand())
}

func initConfig(cmd *cobra.Command, _ []string) error {
func initConfig(_ *cobra.Command, _ []string) error {
configAccessor = viper.NewAccessor(config.Options{
StrictMode: true,
SearchPaths: []string{cfgFile},
})

configAccessor.InitializePflags(cmd.Flags())

err := configAccessor.UpdateConfig(context.TODO())
if err != nil {
return err
Expand Down

0 comments on commit 0595256

Please sign in to comment.