Browse Source

change for loop to use new API

failed_true
Edoardo Putti 8 years ago
parent
commit
c74a40e2dc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ca_shell.py

+ 1
- 1
ca_shell.py View File

@ -140,7 +140,7 @@ class CAManagerShell(cmd.Cmd, object):
def print_available_authorities(ca_manager): def print_available_authorities(ca_manager):
for i, ca_item in enumerate(ca_manager.get_cas_list()):
for i, ca_item in enumerate(ca_manager.ca):
(ca_id, ca_name, ca_type) = ca_item (ca_id, ca_name, ca_type) = ca_item
print("- %d : [%3s] %-15s (%s)" % (i ,ca_type, ca_id, ca_name)) print("- %d : [%3s] %-15s (%s)" % (i ,ca_type, ca_id, ca_name))


Loading…
Cancel
Save