mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 05:43:26 +00:00
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.
This commit is contained in:
@@ -201,7 +201,6 @@ dnszone:
|
||||
returned: always
|
||||
"""
|
||||
|
||||
from ipapython.dnsutil import DNSName # noqa: E402
|
||||
from ansible.module_utils.ansible_freeipa_module import (
|
||||
IPAAnsibleModule,
|
||||
is_ip_address,
|
||||
@@ -210,8 +209,9 @@ from ansible.module_utils.ansible_freeipa_module import (
|
||||
ipalib_errors,
|
||||
compare_args_ipa,
|
||||
IPAParamMapping,
|
||||
DNSName,
|
||||
netaddr
|
||||
) # noqa: E402
|
||||
import netaddr
|
||||
from ansible.module_utils import six
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user