From 97a7df76442f681c27c7d00b5af7bd42e7e77475 Mon Sep 17 00:00:00 2001 From: Atlas Health Date: Sun, 6 Apr 2014 15:34:44 -0700 Subject: [PATCH] moved ebs_optimized param out of main request hash --- library/cloud/ec2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/cloud/ec2 b/library/cloud/ec2 index 50496d60ba3..88a62b9829a 100644 --- a/library/cloud/ec2 +++ b/library/cloud/ec2 @@ -833,9 +833,11 @@ def create_instances(module, ec2, override_count=None): 'instance_type': instance_type, 'kernel_id': kernel, 'ramdisk_id': ramdisk, - 'ebs_optimized': ebs_optimized, 'user_data': user_data} + if ebs_optimized: + params['ebs_optimized'] = ebs_optimized + if boto_supports_profile_name_arg(ec2): params['instance_profile_name'] = instance_profile_name else: