Skip to content

Commit

Permalink
fix(influx): fixup display message for onboarding with interactive an…
Browse files Browse the repository at this point in the history
…d rp flag

closes: #17862
  • Loading branch information
jsteenb2 committed May 8, 2020
1 parent 24cc1ca commit 3ad0093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
1. [17941](https://github.com/influxdata/influxdb/pull/17941): Enforce DNS name compliance on all pkger resources' metadata.name field
1. [17989](https://github.com/influxdata/influxdb/pull/17989): Add stateful pkg management with stacks
1. [18007](https://github.com/influxdata/influxdb/pull/18007): Add remove and list pkger stack commands to influx CLI
1. [18017](https://github.com/influxdata/influxdb/pull/18017): Fixup display message for interactive influx setup cmd

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion cmd/influx/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func getConfirm(ui *input.UI, or *influxdb.OnboardingRequest) bool {
for {
rp := "infinite"
if or.RetentionPeriod > 0 {
rp = fmt.Sprintf("%d hrs", or.RetentionPeriod)
rp = fmt.Sprintf("%d hrs", or.RetentionPeriod/uint(time.Hour))
}
ui.Writer.Write(promptWithColor(fmt.Sprintf(`
You have entered:
Expand Down

0 comments on commit 3ad0093

Please sign in to comment.