This is an automated email from the ASF dual-hosted git repository.
husseinawala pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 40729ce4bf Fixing typo in airflow kerberos (#34827)
40729ce4bf is described below
commit 40729ce4bfb23e00d5d8c9a3fab6b9d64553c315
Author: Amogh Desai <[email protected]>
AuthorDate: Mon Oct 9 23:58:17 2023 +0530
Fixing typo in airflow kerberos (#34827)
---
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 == [