MCPcopy
hub / github.com/apache/airflow / run

Function run

airflow/security/kerberos.py:160–174  ·  view source on GitHub ↗

Run the kerbros renewer. :param principal: principal name :param keytab: keytab file :return: None

(principal: str, keytab: str)

Source from the content-addressed store, hash-verified

158
159
160def run(principal: str, keytab: str):
161 """
162 Run the kerbros renewer.
163
164 :param principal: principal name
165 :param keytab: keytab file
166 :return: None
167 """
168 if not keytab:
169 log.debug("Keytab renewer not starting, no keytab configured")
170 sys.exit(0)
171
172 while True:
173 renew_from_kt(principal, keytab)
174 time.sleep(conf.getint('kerberos', 'reinit_frequency'))

Callers 2

check_spellingMethod · 0.50
build_sphinx_docsMethod · 0.50

Calls 2

renew_from_ktFunction · 0.85
getintMethod · 0.80

Tested by

no test coverage detected