From 2415058dd5d39180ec761c65d666c4dd1917ac46 Mon Sep 17 00:00:00 2001 From: meejah Date: Tue, 27 Nov 2018 14:54:05 -0700 Subject: [PATCH] more-clear output from 'tahoe grid-manager lsit' --- src/allmydata/scripts/tahoe_grid_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/scripts/tahoe_grid_manager.py b/src/allmydata/scripts/tahoe_grid_manager.py index 8e1d1093c..ee6080174 100644 --- a/src/allmydata/scripts/tahoe_grid_manager.py +++ b/src/allmydata/scripts/tahoe_grid_manager.py @@ -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