Merge pull request #1323 from rjeffman/rhel70021

ipacert: Revoking with  removeFromCRL should be handled as cert release
This commit is contained in:
Thomas Woerner
2024-12-11 14:54:59 +01:00
committed by GitHub
2 changed files with 70 additions and 0 deletions

View File

@@ -487,6 +487,8 @@ def main():
# revoked
reason = ansible_module.params_get("revocation_reason")
if reason is not None:
reason = get_revocation_reason(ansible_module, reason)
# general
serial_number = ansible_module.params.get("serial_number")
@@ -521,6 +523,9 @@ def main():
invalid.append("revocation_reason")
if state == "revoked":
invalid.extend(["certificate_out", "chain"])
# Reason 8 (revomeFromCRL) is the same as release hold
if reason == 8:
state = "released"
elif state == "held":
reason = 6 # certificateHold