Merge pull request #1208 from influxdata/fix/write-precision

fix(cmd/influx): typos in cli variables
pull/10616/head
Chris Goller 2018-10-26 16:00:17 -05:00 committed by GitHub
commit 99ca62435b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -52,13 +52,13 @@ func init() {
writeFlags.BucketID = h writeFlags.BucketID = h
} }
writeCmd.PersistentFlags().StringVarP(&writeFlags.Org, "bucket", "b", "", "name of destination bucket") writeCmd.PersistentFlags().StringVarP(&writeFlags.Bucket, "bucket", "b", "", "name of destination bucket")
viper.BindEnv("BUCKET_NAME") viper.BindEnv("BUCKET_NAME")
if h := viper.GetString("BUCKET_NAME"); h != "" { if h := viper.GetString("BUCKET_NAME"); h != "" {
writeFlags.Bucket = h writeFlags.Bucket = h
} }
writeCmd.PersistentFlags().StringVarP(&writeFlags.Org, "precision", "p", "ns", "precision of the timestamps of the lines") writeCmd.PersistentFlags().StringVarP(&writeFlags.Precision, "precision", "p", "ns", "precision of the timestamps of the lines")
viper.BindEnv("PRECISION") viper.BindEnv("PRECISION")
if p := viper.GetString("PRECISION"); p != "" { if p := viper.GetString("PRECISION"); p != "" {
writeFlags.Precision = p writeFlags.Precision = p