Skip to content

Commit

Permalink
Handle unlimited blob retention in CLI output (cadence-workflow#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjdawson2016 authored Apr 10, 2019
1 parent b6f9684 commit a4e8002
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,14 @@ func DescribeDomain(c *cli.Context) {
formatStr = formatStr + "BucketName: %v\n"
descValues = append(descValues, resp.Configuration.GetArchivalBucketName())
}
if resp.Configuration.GetArchivalRetentionPeriodInDays() != 0 {
if resp.Configuration.ArchivalRetentionPeriodInDays != nil {
formatStr = formatStr + "ArchivalRetentionInDays: %v\n"
descValues = append(descValues, resp.Configuration.GetArchivalRetentionPeriodInDays())
archivalRetentionDays := resp.Configuration.GetArchivalRetentionPeriodInDays()
if archivalRetentionDays == 0 {
descValues = append(descValues, "unlimited")
} else {
descValues = append(descValues, archivalRetentionDays)
}
}
if resp.Configuration.GetArchivalBucketOwner() != "" {
formatStr = formatStr + "BucketOwner: %v\n"
Expand Down

0 comments on commit a4e8002

Please sign in to comment.