From 706e1f5be36412531f12f99bb0455beb44e370fb Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Tue, 31 Aug 2021 19:07:42 -0300 Subject: [PATCH] automountlocation: Use IPAAnsibleModule class Use IPAAnsibleModule methods and ipamodule_base_docs ducument fragment. --- plugins/modules/ipaautomountlocation.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/plugins/modules/ipaautomountlocation.py b/plugins/modules/ipaautomountlocation.py index 44748c0e..f1925ddc 100644 --- a/plugins/modules/ipaautomountlocation.py +++ b/plugins/modules/ipaautomountlocation.py @@ -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: -- GitLab