Fix a typo in create_instances

Fix a typo in create_instances: use 'placement_group' instead of placement_group
when calling boto_siupports_param_in_spot_request().
This commit is contained in:
Alex Feinberg 2015-05-04 17:14:42 -07:00 committed by Matt Clay
parent fb527955c9
commit 1ac9c20b6e

View file

@ -939,7 +939,7 @@ def create_instances(module, ec2, vpc, override_count=None):
if private_ip: if private_ip:
module.fail_json( module.fail_json(
msg='private_ip only available with on-demand (non-spot) instances') msg='private_ip only available with on-demand (non-spot) instances')
if boto_supports_param_in_spot_request(ec2, placement_group): if boto_supports_param_in_spot_request(ec2, 'placement_group'):
params['placement_group'] = placement_group params['placement_group'] = placement_group
elif placement_group : elif placement_group :
module.fail_json( module.fail_json(