Ensure defaults match spec

Change-Id: Ie5c499d7e035a0e9c3ac32e5dc5d57151c1745ed
This commit is contained in:
Mark Chappell
2020-03-16 13:49:17 +01:00
parent aeb0e78148
commit f16eda89dd
5 changed files with 12 additions and 18 deletions

View File

@@ -59,7 +59,7 @@ options:
description:
- Whether the image can be accessed publicly. Note that publicizing an image requires admin role by default.
type: bool
default: 'yes'
default: false
protected:
description:
- Prevent image from being deleted

View File

@@ -38,19 +38,22 @@ options:
- Text to use to filter image names, for the case, such as HP, where
there are multiple image names matching the common identifying
portions. image_exclude is a negative match filter - it is text that
may not exist in the image name. Defaults to "(deprecated)"
may not exist in the image name.
type: str
default: "(deprecated)"
flavor:
description:
- The name or id of the flavor in which the new instance has to be
created. Mutually exclusive with flavor_ram
default: 1
created.
- Exactly one of I(flavor) and I(flavor_ram) must be defined when
I(state=present).
type: str
flavor_ram:
description:
- The minimum amount of ram in MB that the flavor in which the new
instance has to be created must have. Mutually exclusive with flavor.
default: 1
instance has to be created must have.
- Exactly one of I(flavor) and I(flavor_ram) must be defined when
I(state=present).
type: int
flavor_include:
description:
@@ -68,6 +71,7 @@ options:
- Names of the security groups to which the instance should be
added. This may be a YAML list or a comma separated string.
type: list
default: ['default']
network:
description:
- Name or ID of a network to attach this instance to. A simpler
@@ -633,7 +637,7 @@ class ServerModule(OpenStackModule):
auto_ip=dict(default=True, type='bool', aliases=['auto_floating_ip', 'public_ip']),
floating_ips=dict(default=None, type='list'),
floating_ip_pools=dict(default=None, type='list'),
volume_size=dict(default=False, type='int'),
volume_size=dict(default=None, type='int'),
boot_from_volume=dict(default=False, type='bool'),
boot_volume=dict(default=None, aliases=['root_volume']),
terminate_volume=dict(default=False, type='bool'),

View File

@@ -52,7 +52,7 @@ options:
description:
- Rollback stack creation
type: bool
default: 'yes'
default: false
timeout:
description:
- Maximum number of seconds to wait for the stack creation

View File

@@ -1,13 +1,9 @@
plugins/module_utils/openstack.py future-import-boilerplate
plugins/module_utils/openstack.py metaclass-boilerplate
plugins/modules/os_image.py validate-modules:doc-choices-do-not-match-spec
plugins/modules/os_image.py validate-modules:doc-default-does-not-match-spec
plugins/modules/os_ironic.py validate-modules:doc-choices-do-not-match-spec
plugins/modules/os_quota.py validate-modules:doc-choices-do-not-match-spec
plugins/modules/os_quota.py validate-modules:return-syntax-error
plugins/modules/os_server.py validate-modules:doc-default-does-not-match-spec
plugins/modules/os_server_action.py validate-modules:doc-default-does-not-match-spec
plugins/modules/os_stack.py validate-modules:doc-default-does-not-match-spec
plugins/modules/os_subnet.py validate-modules:doc-choices-do-not-match-spec
plugins/doc_fragments/openstack.py future-import-boilerplate
plugins/doc_fragments/openstack.py metaclass-boilerplate

View File

@@ -1,16 +1,10 @@
plugins/module_utils/openstack.py future-import-boilerplate
plugins/module_utils/openstack.py metaclass-boilerplate
plugins/modules/os_flavor_info.py validate-modules:doc-default-does-not-match-spec
plugins/modules/os_image.py validate-modules:doc-choices-do-not-match-spec
plugins/modules/os_image.py validate-modules:doc-default-does-not-match-spec
plugins/modules/os_ironic.py validate-modules:doc-choices-do-not-match-spec
plugins/modules/os_ironic_node.py validate-modules:doc-choices-do-not-match-spec
plugins/modules/os_ironic_node.py validate-modules:doc-default-does-not-match-spec
plugins/modules/os_quota.py validate-modules:doc-choices-do-not-match-spec
plugins/modules/os_quota.py validate-modules:return-syntax-error
plugins/modules/os_server.py validate-modules:doc-default-does-not-match-spec
plugins/modules/os_server_action.py validate-modules:doc-default-does-not-match-spec
plugins/modules/os_stack.py validate-modules:doc-default-does-not-match-spec
plugins/modules/os_subnet.py validate-modules:doc-choices-do-not-match-spec
plugins/doc_fragments/openstack.py future-import-boilerplate
plugins/doc_fragments/openstack.py metaclass-boilerplate