Require requests_kerberos only when needed
If CTS integration is not used, let's not import a module that is not needed. JIRA: RHELCMP-6611 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
195bfbefa4
commit
5c26aa9127
@ -129,11 +129,11 @@ def get_compose_info(
|
||||
|
||||
|
||||
def get_authentication(conf):
|
||||
from requests_kerberos import HTTPKerberosAuth
|
||||
|
||||
authentication = None
|
||||
cts_keytab = conf.get("cts_keytab", None)
|
||||
if cts_keytab:
|
||||
from requests_kerberos import HTTPKerberosAuth
|
||||
|
||||
authentication = HTTPKerberosAuth()
|
||||
return authentication
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user