mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-08 06:13:21 +00:00
dnszone: Use IPAAnsibleModule class.
Use IPAAnsibleModule methods and ipamodule_base_docs ducument fragment.
This commit is contained in:
committed by
Thomas Woerner
parent
0c430d0aa9
commit
21a48d5968
@@ -31,13 +31,9 @@ DOCUMENTATION = """
|
||||
module: ipadnszone
|
||||
short description: Manage FreeIPA dnszone
|
||||
description: Manage FreeIPA dnszone
|
||||
extends_documentation_fragment:
|
||||
- ipamodule_base_docs
|
||||
options:
|
||||
ipaadmin_principal:
|
||||
description: The admin principal
|
||||
default: admin
|
||||
ipaadmin_password:
|
||||
description: The admin password
|
||||
required: false
|
||||
name:
|
||||
description: The zone name string.
|
||||
required: true
|
||||
@@ -408,7 +404,9 @@ class DNSZoneModule(FreeIPABaseModule):
|
||||
get_zone_args = {"idnsname": zone_name, "all": True}
|
||||
|
||||
try:
|
||||
response = self.api_command("dnszone_show", args=get_zone_args)
|
||||
response = self.ipa_command_no_name(
|
||||
"dnszone_show", args=get_zone_args
|
||||
)
|
||||
except ipalib_errors.NotFound:
|
||||
zone = None
|
||||
is_zone_active = False
|
||||
|
||||
Reference in New Issue
Block a user