Skip to content
Snippets Groups Projects
Commit f4346ff9 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Fix missing 'get' method on Suds objects

parent f3af9f85
No related branches found
No related tags found
No related merge requests found
...@@ -250,7 +250,13 @@ class EjbcaRegistry(OpenSSLRegistry): ...@@ -250,7 +250,13 @@ class EjbcaRegistry(OpenSSLRegistry):
subjectDN = self.subject_dn_template % client.name subjectDN = self.subject_dn_template % client.name
) )
edata["subjectAltName"] = ",".join(("RFC822NAME=%s" % a for a in client.admins)) edata["subjectAltName"] = ",".join(("RFC822NAME=%s" % a for a in client.admins))
edata["status"] = self.status_str_to_ejbca.get(client.status, edata["status"]) try:
edata["status"] = self.status_str_to_ejbca.get(client.status)
except KeyError:
# Unknown status - either came from EJBCA and translated to
# "Other", or something wrong came in later. Let's just
# keep original EJBCA status unchanged.
pass
if client.pwd: if client.pwd:
edata["password"] = client.pwd edata["password"] = client.pwd
edata["clearPwd"] = True edata["clearPwd"] = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment