diff --git a/cloud/amazon/ec2.py b/cloud/amazon/ec2.py index a2dcdada0a8..09a4082428b 100755 --- a/cloud/amazon/ec2.py +++ b/cloud/amazon/ec2.py @@ -939,7 +939,7 @@ def create_instances(module, ec2, vpc, override_count=None): if private_ip: module.fail_json( 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 elif placement_group : module.fail_json(