403b09
From 7bad2b168b2abbfcd0d81afe7f52342648b75bc4 Mon Sep 17 00:00:00 2001
403b09
From: Jan Cholasta <jcholast@redhat.com>
403b09
Date: Mon, 29 Aug 2016 17:49:56 +0200
403b09
Subject: [PATCH] cert: add missing param values to cert-find output
403b09
403b09
Add back `serial_number_hex` and `revoked` param values to cert-find output
403b09
accidentally removed in commit c718ef058847bb39e78236e8af0ad69ac961bbcf.
403b09
403b09
https://fedorahosted.org/freeipa/ticket/6269
403b09
403b09
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
403b09
---
403b09
 ipaserver/plugins/cert.py | 3 ++-
403b09
 1 file changed, 2 insertions(+), 1 deletion(-)
403b09
403b09
diff --git a/ipaserver/plugins/cert.py b/ipaserver/plugins/cert.py
403b09
index 6dd9f6ffcdcd9d051d50d912996fea2104d71dff..a1166a0d0e5b09586832550c055fc6714c3efe26 100644
403b09
--- a/ipaserver/plugins/cert.py
403b09
+++ b/ipaserver/plugins/cert.py
403b09
@@ -1083,7 +1083,8 @@ class cert_find(Search, CertMethod):
403b09
                 obj = ra_obj
403b09
                 obj['issuer'] = issuer
403b09
                 obj['subject'] = DN(ra_obj['subject'])
403b09
-                del obj['serial_number_hex']
403b09
+                obj['revoked'] = (
403b09
+                    ra_obj['status'] in (u'REVOKED', u'REVOKED_EXPIRED'))
403b09
 
403b09
                 if all:
403b09
                     ra_obj = ra.get_certificate(str(serial_number))
403b09
-- 
403b09
2.7.4
403b09