corrected required docs as only boolean is allowed

these complex values were not displayed and would always show the fields as requried
This commit is contained in:
Brian Coca 2016-04-01 16:58:30 -04:00 committed by Matt Clay
parent 1bdc3b3bb0
commit 37513ca8bb
5 changed files with 11 additions and 8 deletions

View file

@ -24,8 +24,8 @@ version_added: "1.4"
options: options:
cidr_block: cidr_block:
description: description:
- "The cidr block representing the VPC, e.g. 10.0.0.0/16" - "The cidr block representing the VPC, e.g. 10.0.0.0/16", required when I(state) is 'present'.
required: false, unless state=present required: false
instance_tenancy: instance_tenancy:
description: description:
- "The supported tenancy options for instances launched into the VPC." - "The supported tenancy options for instances launched into the VPC."

View file

@ -68,7 +68,7 @@ options:
cache_subnet_group: cache_subnet_group:
description: description:
- The subnet group name to associate with. Only use if inside a vpc. Required if inside a vpc - The subnet group name to associate with. Only use if inside a vpc. Required if inside a vpc
required: conditional required: false
default: None default: None
version_added: "1.7" version_added: "1.7"
security_group_ids: security_group_ids:

View file

@ -54,8 +54,9 @@ options:
network: network:
description: description:
- Unique name or ID of the external gateway network. - Unique name or ID of the external gateway network.
- required I(interfaces) or I(enable_snat) are provided,
type: string type: string
required: true when I(interfaces) or I(enable_snat) are provided, required: false
false otherwise. false otherwise.
default: None default: None
external_fixed_ips: external_fixed_ips:

View file

@ -42,7 +42,8 @@ options:
network_name: network_name:
description: description:
- Name of the network to which the subnet should be attached - Name of the network to which the subnet should be attached
required: true when state is 'present' - requried when I(state) is 'present'
required: false
name: name:
description: description:
- The name of the subnet that should be created. Although Neutron - The name of the subnet that should be created. Although Neutron
@ -52,8 +53,8 @@ options:
cidr: cidr:
description: description:
- The CIDR representation of the subnet that should be assigned to - The CIDR representation of the subnet that should be assigned to
the subnet. the subnet. Required when I(state) is 'present'
required: true when state is 'present' required: false
default: None default: None
ip_version: ip_version:
description: description:

View file

@ -41,7 +41,8 @@ options:
password: password:
description: description:
- Password for the user - Password for the user
required: true when I(state) is present - Required when I(state) is present
required: false
default: None default: None
email: email:
description: description: