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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
706e1f5b
Commit
706e1f5b
authored
3 years ago
by
Rafael Guterres Jeffman
Committed by
Thomas Woerner
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
automountlocation: Use IPAAnsibleModule class
Use IPAAnsibleModule methods and ipamodule_base_docs ducument fragment.
parent
21a48d59
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/modules/ipaautomountlocation.py
+5
-9
5 additions, 9 deletions
plugins/modules/ipaautomountlocation.py
with
5 additions
and
9 deletions
plugins/modules/ipaautomountlocation.py
+
5
−
9
View file @
706e1f5b
...
...
@@ -33,13 +33,9 @@ author: chris procter
short_description: Manage FreeIPA autommount locations
description:
- Add and delete an IPA automount location
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 automount location to be managed
required: true
...
...
@@ -79,9 +75,9 @@ class AutomountLocation(FreeIPABaseModule):
def
get_location
(
self
,
location
):
try
:
response
=
self
.
api
_command
(
"
automountlocation_show
"
,
location
,
{}
)
response
=
self
.
ipa
_command
(
"
automountlocation_show
"
,
location
,
{}
)
except
ipalib_errors
.
NotFound
:
return
None
else
:
...
...
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