mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
e6d560af66
The ipaclient PyPI package does not ship the ipaclient.install subpackage. The ipaclient.install.ipadiscovery module with IPADiscovery is now available as ipaclient.discovery, so it can be used by consumers of PyPI packages. The module ipaclient.install.ipadiscovery provides a backwards compatibility shim with deprecation warning. Fixes: https://pagure.io/freeipa/issue/7861 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
24 lines
677 B
Python
24 lines
677 B
Python
#
|
|
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
|
|
#
|
|
|
|
import warnings
|
|
|
|
from ipaclient.discovery import (
|
|
NOT_FQDN, NO_LDAP_SERVER, REALM_NOT_FOUND, NOT_IPA_SERVER,
|
|
NO_ACCESS_TO_LDAP, NO_TLS_LDAP, BAD_HOST_CONFIG,
|
|
UNKNOWN_ERROR, IPA_BASEDN_INFO, error_names, get_ipa_basedn,
|
|
IPADiscovery
|
|
)
|
|
|
|
__all__ = (
|
|
'NOT_FQDN', 'NO_LDAP_SERVER', 'REALM_NOT_FOUND',
|
|
'NOT_IPA_SERVER', 'NO_ACCESS_TO_LDAP', 'NO_TLS_LDAP',
|
|
'BAD_HOST_CONFIG', 'UNKNOWN_ERROR', 'IPA_BASEDN_INFO',
|
|
'error_names', 'get_ipa_basedn', 'IPADiscovery')
|
|
|
|
warnings.warn(
|
|
"ipaclient.install.ipadiscovery is deprecated, use ipaclient.discovery",
|
|
DeprecationWarning
|
|
)
|