From a180f339a87931f0990d9f0ffd062a6242fe2969 Mon Sep 17 00:00:00 2001
From: Sagi Shnaidman <sshnaidm@redhat.com>
Date: Wed, 2 Nov 2022 15:31:02 +0200
Subject: [PATCH] Fix documentation defaults for modules

Match defaults in spec and documentation, make happy ansible-test.

Change-Id: Ifd6a02e957d1f0df27d89c350fb9d1ebf1ca7680
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
---
 plugins/modules/loadbalancer.py   | 1 +
 plugins/modules/routers_info.py   | 1 +
 plugins/modules/security_group.py | 1 +
 plugins/modules/server.py         | 1 +
 plugins/modules/stack.py          | 1 +
 5 files changed, 5 insertions(+)

diff --git a/plugins/modules/loadbalancer.py b/plugins/modules/loadbalancer.py
index 57d43dc..4a220b7 100644
--- a/plugins/modules/loadbalancer.py
+++ b/plugins/modules/loadbalancer.py
@@ -125,6 +125,7 @@ options:
                     accessible from.
     elements: dict
     type: list
+    default: []
   wait:
     description:
       - If the module should wait for the load balancer to be created or
diff --git a/plugins/modules/routers_info.py b/plugins/modules/routers_info.py
index 4683e9b..a83fc7c 100644
--- a/plugins/modules/routers_info.py
+++ b/plugins/modules/routers_info.py
@@ -23,6 +23,7 @@ options:
           this dictionary may be additional dictionaries.
      required: false
      type: dict
+     default: {}
      suboptions:
        project_id:
          description:
diff --git a/plugins/modules/security_group.py b/plugins/modules/security_group.py
index 01173f7..4373209 100644
--- a/plugins/modules/security_group.py
+++ b/plugins/modules/security_group.py
@@ -23,6 +23,7 @@ options:
      description:
         - Long description of the purpose of the security group
      type: str
+     default: ''
    state:
      description:
        - Should the resource be present or absent.
diff --git a/plugins/modules/server.py b/plugins/modules/server.py
index 8bb1e3e..5cbfd98 100644
--- a/plugins/modules/server.py
+++ b/plugins/modules/server.py
@@ -153,6 +153,7 @@ options:
         - This server attribute cannot be updated.
       type: list
       elements: raw
+      default: []
       suboptions:
         tag:
           description:
diff --git a/plugins/modules/stack.py b/plugins/modules/stack.py
index 1ce6d25..638b117 100644
--- a/plugins/modules/stack.py
+++ b/plugins/modules/stack.py
@@ -34,6 +34,7 @@ options:
       description:
         - Dictionary of parameters for the stack creation
       type: dict
+      default: {}
     rollback:
       description:
         - Rollback stack creation
-- 
GitLab