diff --git a/plugins/module_utils/ansible_freeipa_module.py b/plugins/module_utils/ansible_freeipa_module.py index 51c02c739a9650198811fb44f3b1994053242013..16b4fa810e00bb78ef37428010adc63725a6eff6 100644 --- a/plugins/module_utils/ansible_freeipa_module.py +++ b/plugins/module_utils/ansible_freeipa_module.py @@ -31,7 +31,7 @@ __all__ = ["gssapi", "netaddr", "api", "ipalib_errors", "Env", "paths", "tasks", "get_credentials_if_valid", "Encoding", "DNSName", "getargspec", "certificate_loader", "write_certificate_list", "boolean", "template_str", - "urlparse"] + "urlparse", "normalize_sshpubkey"] import os # ansible-freeipa requires locale to be C, IPA requires utf-8. @@ -157,6 +157,8 @@ try: except ImportError: from ansible.module_utils.six.moves.urllib.parse import urlparse + from ipalib.util import normalize_sshpubkey + except ImportError as _err: ANSIBLE_FREEIPA_MODULE_IMPORT_ERROR = str(_err)