mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-14 21:42:17 +00:00
ipa[server,replica,client]: Update import and export of global module utils
All module_utils are now providing the __all__ structure. Alse the imports in the modules have been updated to only import freeipa sturctures from module_utils.
This commit is contained in:
@@ -22,10 +22,31 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import os
|
||||
__all__ = ["contextlib", "dnsexception", "dnsresolver", "dnsreversename",
|
||||
"parse_version", "IPAChangeConf",
|
||||
"certstore", "sysrestore", "ipa_generate_password", "kinit_keytab",
|
||||
"IPA_CA_TRUST_FLAGS", "EXTERNAL_CA_TRUST_FLAGS", "DN",
|
||||
"ScriptError", "services", "tasks", "constants", "errors", "rpc",
|
||||
"x509", "validate_domain_name",
|
||||
"no_matching_interface_for_ip_address_warning",
|
||||
"configure_krb5_conf", "purge_host_keytab", "adtrust",
|
||||
"bindinstance", "ca", "certs", "dns", "httpinstance", "kra",
|
||||
"otpdinstance", "custodiainstance", "service", "upgradeinstance",
|
||||
"find_providing_servers", "find_providing_server", "load_pkcs12",
|
||||
"is_ipa_configured", "ReplicationManager", "replica_conn_check",
|
||||
"install_replica_ds", "install_krb", "install_ca_cert",
|
||||
"install_http", "install_dns_records", "create_ipa_conf",
|
||||
"check_dirsrv", "check_dns_resolution", "configure_certmonger",
|
||||
"remove_replica_info_dir", "preserve_enrollment_state",
|
||||
"uninstall_client", "promote_sssd", "promote_openldap_conf",
|
||||
"rpc_client", "check_remote_fips_mode", "check_remote_version",
|
||||
"common_check", "current_domain_level",
|
||||
"check_domain_level_is_supported", "promotion_check_ipa_domain",
|
||||
"SSSDConfig", "CalledProcessError", "timeconf", "ntpinstance",
|
||||
"dnsname", "kernel_keyring", "krbinstance"]
|
||||
|
||||
import sys
|
||||
import logging
|
||||
import inspect
|
||||
from contextlib import contextmanager as contextlib_contextmanager
|
||||
|
||||
|
||||
@@ -48,11 +69,6 @@ if NUM_VERSION >= 40600:
|
||||
import dns.name as dnsname
|
||||
import dns.resolver as dnsresolver
|
||||
import dns.reversename as dnsreversename
|
||||
import os
|
||||
import shutil
|
||||
import socket
|
||||
import tempfile
|
||||
import traceback
|
||||
|
||||
from pkg_resources import parse_version
|
||||
|
||||
|
||||
Reference in New Issue
Block a user