Browse Source

show id instead of name when printing authorities

master
Edoardo Putti 8 years ago
parent
commit
864da51a68
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      authority.py

+ 1
- 2
authority.py View File

@ -41,10 +41,9 @@ class Authority(object):
raise NotImplementedError() raise NotImplementedError()
def __repr__(self): def __repr__(self):
return ( "%s %s" % ( self.__class__.__name__, self.ca_type ) )
return ( "%s %s" % ( self.__class__.__name__, self.ca_id ) )
class SSHAuthority(Authority): class SSHAuthority(Authority):
ca_type = 'ssh'
request_allowed = [ UserSSHRequest, HostSSHRequest, ] request_allowed = [ UserSSHRequest, HostSSHRequest, ]


Loading…
Cancel
Save