Browse Source

implement ls_ca after ca descriptor refactoring

master
Edoardo Putti 8 years ago
parent
commit
8b1eef3910
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      ca_shell.py

+ 2
- 3
ca_shell.py View File

@ -24,9 +24,8 @@ class CAManagerShell(cmd.Cmd, object):
def do_ls_ca(self, l): def do_ls_ca(self, l):
'List the available certification authorities: LS_CA' 'List the available certification authorities: LS_CA'
print("type - id - name")
for ca_id, ca_name, ca_type in self.ca_manager.ca:
print("- [%3s] %-15s (%s)" % (ca_type, ca_id, ca_name))
for i, authority in enumerate(self.ca_manager.ca):
print('- %d - %s' % (i, authority))
def do_ls_requests(self, l): def do_ls_requests(self, l):
'List the available certification requests: LS_REQUESTS' 'List the available certification requests: LS_REQUESTS'


Loading…
Cancel
Save