From 1880aa86b5c116f72376ca01be287b90c5983ff9 Mon Sep 17 00:00:00 2001 From: Willem van Ketwich Date: Wed, 20 Sep 2017 06:00:42 +1000 Subject: [PATCH] fix for unrequired parameter (cherry picked from commit 92426840d6cba427c3ca2a4a9341768aa0f634cb) --- lib/ansible/modules/cloud/amazon/ec2_lc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_lc.py b/lib/ansible/modules/cloud/amazon/ec2_lc.py index dd5ececf15..27e94d9a2e 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_lc.py +++ b/lib/ansible/modules/cloud/amazon/ec2_lc.py @@ -256,8 +256,7 @@ def create_launch_config(connection, module): block_device_mapping = {} - convert_list = ['image_id', 'instance_type', 'instance_type', 'instance_id', 'placement_tenancy', 'key_name', 'kernel_id', 'ramdisk_id', - 'instance_profile_name', 'spot_price'] + convert_list = ['image_id', 'instance_type', 'instance_type', 'instance_id', 'placement_tenancy', 'key_name', 'kernel_id', 'ramdisk_id', 'spot_price'] launch_config = (snake_dict_to_camel_dict(dict((k.capitalize(), str(v)) for k, v in module.params.items() if v is not None and k in convert_list)))