8552fab sudorule: reduce number of LDAP searches during modification

1 file Authored by antorres 2 years ago, Committed by abbra 2 years ago,
    sudorule: reduce number of LDAP searches during modification
    
    Combining the existence check with the sudoorder handling
    allows to reduce the number of searches during a sudorule
    modification by removing a call to sudorule-show.
    
    Related: https://pagure.io/freeipa/issue/8780
    Signed-off-by: Antonio Torres <antorres@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>