Skip to content

Commit

Permalink
Properly pass in userdata as string (saltstack#34623)
Browse files Browse the repository at this point in the history
  • Loading branch information
techhat authored and Nicole Thomas committed Jul 13, 2016
1 parent fc38ec7 commit dd855c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/cloud/clouds/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@ def request_instance(vm_=None, call=None):
blacklist = __opts__['renderer_blacklist']
whitelist = __opts__['renderer_whitelist']
userdata = compile_template(
userdata, rend, renderer, blacklist, whitelist
':string:', rend, renderer, blacklist, whitelist, input_data=userdata,
)

params[spot_prefix + 'UserData'] = base64.b64encode(userdata)
Expand Down

0 comments on commit dd855c2

Please sign in to comment.