Skip to content

Commit

Permalink
Fixes User-data not created correctly by foreman_fog_proxmox (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manisha15 authored Feb 23, 2024
1 parent eb652d7 commit 3c24a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/proxmox_vm_cloudinit_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def create_cloudinit_iso(vm_name, configs, ssh)
wd = create_temp_directory(ssh)

configs.each do |config|
config_file = ssh.run(%(echo "#{config[1]}" >> "#{wd}/#{config[0]}"))
config_file = ssh.run(%(echo '#{config[1]}' >> "#{wd}/#{config[0]}"))
unless config_file.first.status.zero?
delete_temp_dir(ssh, wd)
raise ::Foreman::Exception, "Failed to create file #{config[0]}: #{config_file.first.stdout}"
Expand Down

0 comments on commit 3c24a78

Please sign in to comment.