Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
bugfix: dfdaemon's config supernodes as an alias do not work.
Browse files Browse the repository at this point in the history
Signed-off-by: zhouchencheng <[email protected]>
  • Loading branch information
zcc35357949 committed Aug 22, 2019
1 parent e659d7f commit d5d5ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dfdaemon/app/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ func init() {

// bindRootFlags binds flags on rootCmd to the given viper instance
func bindRootFlags(v *viper.Viper) error {
v.RegisterAlias("supernodes", "node")
if err := v.BindPFlags(rootCmd.Flags()); err != nil {
return err
}
Expand All @@ -121,6 +120,7 @@ func readConfigFile(v *viper.Viper, cmd *cobra.Command) error {
}
return err
}
v.RegisterAlias("supernodes", "node")

return nil
}
Expand Down

0 comments on commit d5d5ebf

Please sign in to comment.