This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-7-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit b7f2a97f177d1ae130ecee097dd29b671da5997e Author: Amogh Desai <amoghrajesh1...@gmail.com> AuthorDate: Mon Oct 9 23:58:17 2023 +0530 Fixing typo in airflow kerberos (#34827) (cherry picked from commit 40729ce4bfb23e00d5d8c9a3fab6b9d64553c315) --- airflow/security/kerberos.py | 4 ++-- tests/security/test_kerberos.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/airflow/security/kerberos.py b/airflow/security/kerberos.py index bc36f5e98c..32a62f13de 100644 --- a/airflow/security/kerberos.py +++ b/airflow/security/kerberos.py @@ -99,7 +99,7 @@ def renew_from_kt(principal: str | None, keytab: str, exit_on_fail: bool = True) subp.wait() if subp.returncode != 0: log.error( - "Couldn't reinit from keytab! `kinit' exited with %s.\n%s\n%s", + "Couldn't reinit from keytab! `kinit` exited with %s.\n%s\n%s", subp.returncode, "\n".join(subp.stdout.readlines() if subp.stdout else []), "\n".join(subp.stderr.readlines() if subp.stderr else []), @@ -176,7 +176,7 @@ def detect_conf_var() -> bool: def run(principal: str | None, keytab: str): """ - Run the kerbros renewer. + Run the kerberos renewer. :param principal: principal name :param keytab: keytab file diff --git a/tests/security/test_kerberos.py b/tests/security/test_kerberos.py index 25a6376ef0..12dfe93dd6 100644 --- a/tests/security/test_kerberos.py +++ b/tests/security/test_kerberos.py @@ -176,7 +176,7 @@ class TestKerberos: assert [lr[2] for lr in log_records] == [ "Re-initialising kerberos from keytab: " "kinit -f -a -r 3600m -k -t keytab -c /tmp/airflow_krb5_ccache test-principal", - "Couldn't reinit from keytab! `kinit' exited with 1.\nSTDOUT\nSTDERR", + "Couldn't reinit from keytab! `kinit` exited with 1.\nSTDOUT\nSTDERR", ] assert mock_subprocess.mock_calls == [