Skip to content
Snippets Groups Projects
Commit 706e1f5b authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman Committed by Thomas Woerner
Browse files

automountlocation: Use IPAAnsibleModule class

Use IPAAnsibleModule methods and ipamodule_base_docs ducument fragment.
parent 21a48d59
No related branches found
No related tags found
No related merge requests found
...@@ -33,13 +33,9 @@ author: chris procter ...@@ -33,13 +33,9 @@ author: chris procter
short_description: Manage FreeIPA autommount locations short_description: Manage FreeIPA autommount locations
description: description:
- Add and delete an IPA automount location - Add and delete an IPA automount location
extends_documentation_fragment:
- ipamodule_base_docs
options: options:
ipaadmin_principal:
description: The admin principal
default: admin
ipaadmin_password:
description: The admin password
required: false
name: name:
description: The automount location to be managed description: The automount location to be managed
required: true required: true
...@@ -79,9 +75,9 @@ class AutomountLocation(FreeIPABaseModule): ...@@ -79,9 +75,9 @@ class AutomountLocation(FreeIPABaseModule):
def get_location(self, location): def get_location(self, location):
try: try:
response = self.api_command("automountlocation_show", response = self.ipa_command(
location, "automountlocation_show", location, {}
{}) )
except ipalib_errors.NotFound: except ipalib_errors.NotFound:
return None return None
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment