Fixes #998 Added object expiry time to pin ls cmd.

This commit is contained in:
deepakgarg 2020-03-27 18:05:26 -07:00
parent e3e14bd15f
commit bcbea62efe

View File

@ -178,7 +178,7 @@ func textFormatPrintVersion(obj *api.Version) {
} }
func textFormatPrintPin(obj *api.Pin) { func textFormatPrintPin(obj *api.Pin) {
fmt.Printf("%s | %s | %s | ", obj.Cid, obj.Name, strings.ToUpper(obj.Type.String())) fmt.Printf("%s | %s | %s | %s | ", obj.Cid, obj.Name, strings.ToUpper(obj.Type.String()), obj.ExpireAt.String())
if obj.ReplicationFactorMin < 0 { if obj.ReplicationFactorMin < 0 {
fmt.Printf("Repl. Factor: -1 | Allocations: [everywhere]") fmt.Printf("Repl. Factor: -1 | Allocations: [everywhere]")