fix for unrequired parameter

(cherry picked from commit 92426840d6)
This commit is contained in:
Willem van Ketwich 2017-09-20 06:00:42 +10:00 committed by Toshio Kuratomi
parent b92452f775
commit 1880aa86b5

View file

@ -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)))