From 60593b7dd3abd56045beb9b8c900f70634b40e92 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Wed, 13 Sep 2023 13:20:47 +0200
Subject: [PATCH] utils/templates/ipamodule*.py.in: Fix superfluous type in
 argument spec

The type was given twice for state and action argument specs. This has
been fixed.
---
 utils/templates/ipamodule+member.py.in | 4 ++--
 utils/templates/ipamodule.py.in        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/utils/templates/ipamodule+member.py.in b/utils/templates/ipamodule+member.py.in
index 5ce5cf1b..3d34d77b 100644
--- a/utils/templates/ipamodule+member.py.in
+++ b/utils/templates/ipamodule+member.py.in
@@ -157,10 +157,10 @@ def main():
             PARAMETER2=dict(required=False, type='list', elements='str',
                             default=None, aliases=["API_PARAMETER_NAME"]),
             # action
-            action=dict(type="str", default="$name", type="str",
+            action=dict(type="str", default="$name",
                         choices=["member", "$name"]),
             # state
-            state=dict(type="str", default="present", type="str",
+            state=dict(type="str", default="present",
                        choices=["present", "absent"]),
         ),
         supports_check_mode=True,
diff --git a/utils/templates/ipamodule.py.in b/utils/templates/ipamodule.py.in
index aa52257b..3b1bf1e8 100644
--- a/utils/templates/ipamodule.py.in
+++ b/utils/templates/ipamodule.py.in
@@ -128,7 +128,7 @@ def main():
             PARAMETER2=dict(required=False, type='list', elements='str',
                             aliases=["API_PARAMETER_NAME"], default=None),
             # state
-            state=dict(type="str", default="present", type="str",
+            state=dict(type="str", default="present",
                        choices=["present", "absent"]),
         ),
         supports_check_mode=True,
-- 
GitLab