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 887d18f.
  • Loading branch information
wild-endeavor authored Apr 16, 2020
1 parent 45433d3 commit c42b1dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flytepropeller/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 c42b1dc

Please sign in to comment.