make sure userdata is always defined in ec2

This commit is contained in:
Daniel Wallace 2017-04-12 13:48:49 -06:00
parent 0638418d22
commit 5e92fd0948

View File

@ -1676,6 +1676,7 @@ def request_instance(vm_=None, call=None):
image_id = vm_['image']
params[spot_prefix + 'ImageId'] = image_id
userdata = None
userdata_file = config.get_cloud_config_value(
'userdata_file', vm_, __opts__, search_global=False, default=None
)