mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Updating version_added for new spot_type param in ec2 module
Also made sure 'choices' were set on the module param, to catch errors in user's playbooks, etc.
This commit is contained in:
parent
cb776e6190
commit
4239922d07
1 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ options:
|
||||||
default: null
|
default: null
|
||||||
aliases: []
|
aliases: []
|
||||||
spot_type:
|
spot_type:
|
||||||
|
version_added: "2.0"
|
||||||
description:
|
description:
|
||||||
- Type of spot request; one of "one-time" or "persistent". Defaults to "one-time" if not supplied.
|
- Type of spot request; one of "one-time" or "persistent". Defaults to "one-time" if not supplied.
|
||||||
required: false
|
required: false
|
||||||
|
@ -1188,7 +1189,7 @@ def main():
|
||||||
zone = dict(aliases=['aws_zone', 'ec2_zone']),
|
zone = dict(aliases=['aws_zone', 'ec2_zone']),
|
||||||
instance_type = dict(aliases=['type']),
|
instance_type = dict(aliases=['type']),
|
||||||
spot_price = dict(),
|
spot_price = dict(),
|
||||||
spot_type = dict(default='one-time'),
|
spot_type = dict(default='one-time', choices=["one-time", "persistent"]),
|
||||||
image = dict(),
|
image = dict(),
|
||||||
kernel = dict(),
|
kernel = dict(),
|
||||||
count = dict(type='int', default='1'),
|
count = dict(type='int', default='1'),
|
||||||
|
|
Loading…
Reference in a new issue