Skip to content

Commit

Permalink
Revert "Pass command-line arguments (flyteorg#193)" (flyteorg#218)
Browse files Browse the repository at this point in the history
This reverts commit 288937e.
  • Loading branch information
EngHabu authored Jan 26, 2021
1 parent 288937e commit c43efb6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flytepropeller/cmd/controller/cmd/root.go
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,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 c43efb6

Please sign in to comment.