fix(influx): normalize output of template task diff
parent
802afebf8c
commit
4827398fba
|
@ -15,7 +15,7 @@
|
|||
1. [18601](https://github.com/influxdata/influxdb/pull/18601): Provide active config running influx config without args
|
||||
1. [18606](https://github.com/influxdata/influxdb/pull/18606): Enable influxd binary to look for a config file on startup
|
||||
1. [18647](https://github.com/influxdata/influxdb/pull/18647): Add support for env ref default values to the template parser
|
||||
1. [18655](https://github.com/influxdata/influxdb/pull/18655): Add support for platfrom variable selected field to templates
|
||||
1. [18655](https://github.com/influxdata/influxdb/pull/18655): Add support for platform variable selected field to templates
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
|
|
|
@ -1461,6 +1461,9 @@ func (b *cmdPkgBuilder) printPkgDiff(diff pkger.Diff) error {
|
|||
appendValues := func(id pkger.SafeID, pkgName string, v pkger.DiffTaskValues) []string {
|
||||
timing := v.Cron
|
||||
if v.Cron == "" {
|
||||
if v.Offset == "" {
|
||||
v.Offset = time.Duration(0).String()
|
||||
}
|
||||
timing = fmt.Sprintf("every: %s offset: %s", v.Every, v.Offset)
|
||||
}
|
||||
return []string{pkgName, id.String(), v.Name, v.Description, timing}
|
||||
|
|
Loading…
Reference in New Issue