mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-03 03:36:44 +00:00
more-clear output from 'tahoe grid-manager lsit'
This commit is contained in:
parent
02dfb51dba
commit
2415058dd5
@ -432,9 +432,9 @@ def _list(gridoptions, options):
|
||||
expires = datetime.fromtimestamp(cert_data['expires'])
|
||||
delta = datetime.utcnow() - expires
|
||||
if delta.total_seconds() < 0:
|
||||
print(" {}: valid until {} ({})".format(cert_count, expires, abbreviate_time(delta)))
|
||||
print("{}: cert {}: valid until {} ({})".format(name, cert_count, expires, abbreviate_time(delta)))
|
||||
else:
|
||||
print(" {}: expired ({})".format(cert_count, abbreviate_time(delta)))
|
||||
print("{}: cert {}: expired ({})".format(name, cert_count, abbreviate_time(delta)))
|
||||
cert_count += 1
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user