From 77aa76e242c85de60d614955d58057d634ec4cdd Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Sat, 29 Oct 2016 22:30:20 +0200 Subject: [PATCH] update function to print authorities and requests --- ca_shell.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ca_shell.py b/ca_shell.py index 945080e..3012905 100755 --- a/ca_shell.py +++ b/ca_shell.py @@ -168,13 +168,8 @@ class CAManagerShell(cmd.Cmd, object): def print_available_authorities(ca_manager): for i, ca_item in enumerate(ca_manager.ca): - (ca_id, ca_name, ca_type) = ca_item - print("- %d : [%3s] %-15s (%s)" % (i ,ca_type, ca_id, ca_name)) - else: - print("No available CA") + print("- %d : %s" % (i , ca_item)) def print_available_requests(ca_manager): for i, request in enumerate(ca_manager.request): print("- %d : %s" % (i, request)) - else: - print("No requests")