From a9abb671c6f4819ca33115923a0dd77fcef4c75d Mon Sep 17 00:00:00 2001 From: Johnny Steenbergen Date: Fri, 8 May 2020 09:47:10 -0700 Subject: [PATCH] fix(influx): fixup display message for onboarding with interactive and rp flag closes: #17862 --- CHANGELOG.md | 1 + cmd/influx/setup.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 649b1236da0..3a2c52c8633 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cmd/influx/setup.go b/cmd/influx/setup.go index 714fc38abfc..79bcd8b6c9b 100644 --- a/cmd/influx/setup.go +++ b/cmd/influx/setup.go @@ -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: