Commit 489b93e1 authored by Vincent Pelletier's avatar Vincent Pelletier

storage: Cast CSR identifiers into strings.

While identifiers are integers, they could just as well be treated as
opaque identifiers by external applications.
parent 852b0341
......@@ -211,7 +211,7 @@ class CLICaucaseClient(object):
)
for entry in self._client.getPendingCertificateRequestList():
csr = utils.load_certificate_request(entry['csr'])
print '%20i | %r' % (
print '%20s | %r' % (
entry['id'],
csr.subject,
)
......
......@@ -322,7 +322,7 @@ class SQLite3Storage(local):
with self._db as db:
return [
{
'id': x['id'],
'id': str(x['id']),
'csr': x['csr'].encode('ascii'),
}
for x in db.cursor().execute(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment