Browse Source

replace call to deprecated API

less_magic_more_descriptors
Edoardo Putti 8 years ago
parent
commit
d0af26f884
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      ca_manager.py

+ 3
- 3
ca_manager.py View File

@ -93,13 +93,13 @@ def init_manager(paths):
conn.commit()
conn.close()
def sign_request(ca_manager, request_name, authority_name):
def sign_request(ca_manager, request_name, authority_id):
request = None
try:
authority = ca_manager.ca[authority_name]
authority = ca_manager.ca[authority_id]
except IndexError:
print("Could not find CA '%d'" % choosen_ca)
print("Could not find CA '%d'" % authority_id)
return
requests = ca_manager.get_requests()


Loading…
Cancel
Save