URL:
https://github.com/freeipa/freeipa/pull/4881
Author: flo-renaud
Title: #4881: ipa cert-show: fix the code setting revocation reason
Action: opened
PR body:
"""
ipa cert-show wrongly displays all certs as Revoked.
The dogtag plugin code is checking if the JSON data received
from dogtag contains a RevocationReason with:
if 'RevocationReason' in resp:
but the value can be None.
Replace the check with
if resp.get('RevocationReason'):
as this will execute the code only if there is a value
and it is not None.
Fixes:
https://pagure.io/freeipa/issue/8394
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4881/head:pr4881
git checkout pr4881