ec6698f cert plugin: propagate the error for non-existent cert

Authored and Committed by frenaud 3 years ago
    cert plugin: propagate the error for non-existent cert
    
    ipa cert-show, ipa cert-revoke and ipa cert-remove-hold do not
    print meaningful info when called on a non-existent cert id:
    Certificate operation cannot be completed: Unable to communicate
    with CMS
    
    Propagate the reason from the HTTP message in order to print
    'Certificate ID 0x.. not found'
    
    Fixes: https://pagure.io/freeipa/issue/8704
    Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    
        
file modified
+1 -0