Skip to content

Commit

Permalink
Merge pull request influxdata#7421 from influxdata/md-scrub-auth
Browse files Browse the repository at this point in the history
Prevent writing auth command to influx_history
  • Loading branch information
desa authored Oct 7, 2016
2 parents 616d4d2 + 1030306 commit 6c520c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/influx/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (c *CommandLine) mainLoop() error {
c.exit()
return e
}
if err := c.ParseCommand(l); err != ErrBlankCommand {
if err := c.ParseCommand(l); err != ErrBlankCommand && !strings.HasPrefix(l, "auth") {
c.Line.AppendHistory(l)
c.saveHistory()
}
Expand Down

0 comments on commit 6c520c0

Please sign in to comment.