Skip to content

Commit

Permalink
raise correct exception when doing krb5 health check (#14565)
Browse files Browse the repository at this point in the history
Ensure that failed lookup of kerberos credential allows for us to
perform kerberos recovery steps rather than simply erroring out.
  • Loading branch information
anodos325 committed Sep 23, 2024
1 parent deff8f8 commit 4b65dc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _health_check_krb5(self) -> None:
faulted_reason
)

if not krb5.gss_get_current_cred(krb5_constants.krb5ccache.SYSTEM.value):
if not krb5.gss_get_current_cred(krb5_constants.krb5ccache.SYSTEM.value, raise_error=False):
faulted_reason = (
'Kerberos ticket for domain is expired. Failure to renew '
'kerberos ticket may indicate issues with DNS resolution or '
Expand Down

0 comments on commit 4b65dc6

Please sign in to comment.