moved ebs_optimized param out of main request hash
This commit is contained in:
parent
2657bbcefa
commit
97a7df7644
1 changed files with 3 additions and 1 deletions
|
@ -833,9 +833,11 @@ def create_instances(module, ec2, override_count=None):
|
||||||
'instance_type': instance_type,
|
'instance_type': instance_type,
|
||||||
'kernel_id': kernel,
|
'kernel_id': kernel,
|
||||||
'ramdisk_id': ramdisk,
|
'ramdisk_id': ramdisk,
|
||||||
'ebs_optimized': ebs_optimized,
|
|
||||||
'user_data': user_data}
|
'user_data': user_data}
|
||||||
|
|
||||||
|
if ebs_optimized:
|
||||||
|
params['ebs_optimized'] = ebs_optimized
|
||||||
|
|
||||||
if boto_supports_profile_name_arg(ec2):
|
if boto_supports_profile_name_arg(ec2):
|
||||||
params['instance_profile_name'] = instance_profile_name
|
params['instance_profile_name'] = instance_profile_name
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue