Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
21a48d59
Commit
21a48d59
authored
Aug 31, 2021
by
Rafael Guterres Jeffman
Committed by
Thomas Woerner
Sep 2, 2021
Browse files
Options
Downloads
Patches
Plain Diff
dnszone: Use IPAAnsibleModule class.
Use IPAAnsibleModule methods and ipamodule_base_docs ducument fragment.
parent
0c430d0a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/modules/ipadnszone.py
+5
-7
5 additions, 7 deletions
plugins/modules/ipadnszone.py
with
5 additions
and
7 deletions
plugins/modules/ipadnszone.py
+
5
−
7
View file @
21a48d59
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment