mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Revert "Don't use 'tenancy' in ec2 spot requests"
This commit is contained in:
parent
d3c686d632
commit
6e55a0324b
1 changed files with 1 additions and 2 deletions
|
@ -834,8 +834,7 @@ def create_instances(module, ec2, override_count=None):
|
||||||
if ebs_optimized:
|
if ebs_optimized:
|
||||||
params['ebs_optimized'] = ebs_optimized
|
params['ebs_optimized'] = ebs_optimized
|
||||||
|
|
||||||
# 'tenancy' always has a default value, but it is not a valid parameter for spot instance resquest
|
if tenancy:
|
||||||
if not spot_price:
|
|
||||||
params['tenancy'] = tenancy
|
params['tenancy'] = tenancy
|
||||||
|
|
||||||
if boto_supports_profile_name_arg(ec2):
|
if boto_supports_profile_name_arg(ec2):
|
||||||
|
|
Loading…
Reference in a new issue