Skip to content

Commit

Permalink
fix(influx): fix token env var and default assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteenb2 committed Feb 13, 2020
1 parent 47ab6d6 commit a632025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/influx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func influxCmd(opts ...genericCLIOptFn) *cobra.Command {
}
fOpts.mustRegister(cmd)

if flags.token != "" {
if flags.token == "" {
// this is after the flagOpts register b/c we don't want to show the default value
// in the usage display. This will add it as the token value, then if a token flag
// is provided too, the flag will take precedence.
Expand Down

0 comments on commit a632025

Please sign in to comment.