From 4c4668b437b9e0f3258e627df9bd693de7243eb5 Mon Sep 17 00:00:00 2001
From: Rafael Guterres Jeffman <rjeffman@redhat.com>
Date: Thu, 9 Sep 2021 00:17:48 -0300
Subject: [PATCH] IPAAnsibleModule: Fix example in documentation.

In the provided example for the class documentation, the parameters
passed to the `ipa_command` method were wrong, as a single list was
used instead of a parameter list.
---
 plugins/module_utils/ansible_freeipa_module.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/module_utils/ansible_freeipa_module.py b/plugins/module_utils/ansible_freeipa_module.py
index 45e956d0..cd909c6e 100644
--- a/plugins/module_utils/ansible_freeipa_module.py
+++ b/plugins/module_utils/ansible_freeipa_module.py
@@ -559,9 +559,9 @@ else:
 
                 # Execute command
                 if state == "present":
-                    ansible_module.ipa_command(["command_add", name, {}])
+                    ansible_module.ipa_command("command_add", name, {})
                 else:
-                    ansible_module.ipa_command(["command_del", name, {}])
+                    ansible_module.ipa_command("command_del", name, {})
 
             # Done
 
-- 
GitLab