From b84baf03dc6ba52139ac79a9edde87e910d70f98 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: May 16 2019 16:09:40 +0000 Subject: Delay import of SSSDConfig SSSDConfig is not available on PyPI. Reviewed-By: Alexander Bokovoy --- diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index 365fd99..f3ba131 100644 --- a/ipatests/pytest_ipa/integration/tasks.py +++ b/ipatests/pytest_ipa/integration/tasks.py @@ -33,7 +33,6 @@ import time import dns from ldif import LDIFWriter import pytest -from SSSDConfig import SSSDConfig from six import StringIO from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa @@ -750,6 +749,7 @@ def modify_sssd_conf(host, domain, mod_dict, provider='ipa', :param provider_subtype: backend subtype (e.g. id or sudo), will be added to the domain config if not present """ + from SSSDConfig import SSSDConfig fd, temp_config_file = tempfile.mkstemp() os.close(fd) try: