Skip to content
Snippets Groups Projects
Commit 75d481c6 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

ipadnszone: import netaddr and DNSName from ansible_freeipa_module

ansible_freeipa_module is providing netaddr and also DNSName, therefore
it is not needed to have own imports in the module. These own imports
would need an addional try exception clause to be able to pass the
ansible-test fake execution test.
parent fe364cc2
No related branches found
No related tags found
No related merge requests found
...@@ -201,7 +201,6 @@ dnszone: ...@@ -201,7 +201,6 @@ dnszone:
returned: always returned: always
""" """
from ipapython.dnsutil import DNSName # noqa: E402
from ansible.module_utils.ansible_freeipa_module import ( from ansible.module_utils.ansible_freeipa_module import (
IPAAnsibleModule, IPAAnsibleModule,
is_ip_address, is_ip_address,
...@@ -210,8 +209,9 @@ from ansible.module_utils.ansible_freeipa_module import ( ...@@ -210,8 +209,9 @@ from ansible.module_utils.ansible_freeipa_module import (
ipalib_errors, ipalib_errors,
compare_args_ipa, compare_args_ipa,
IPAParamMapping, IPAParamMapping,
DNSName,
netaddr
) # noqa: E402 ) # noqa: E402
import netaddr
from ansible.module_utils import six from ansible.module_utils import six
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment