Skip to content

Commit

Permalink
add to_s to uuid call
Browse files Browse the repository at this point in the history
fixes #190
  • Loading branch information
cgsmith authored Dec 3, 2020
1 parent d35df1b commit 38eee81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-hostsupdater/HostsUpdater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def addToHosts(entries)
elsif Vagrant::Util::Platform.windows?
require 'tmpdir'
uuid = @machine.id || @machine.config.hostsupdater.id
tmpPath = File.join(Dir.tmpdir, 'hosts-' + uuid + '.cmd')
tmpPath = File.join(Dir.tmpdir, 'hosts-' + uuid.to_s + '.cmd')
File.open(tmpPath, "w") do |tmpFile|
entries.each { |line| tmpFile.puts(">>\"#{@@hosts_path}\" echo #{line}") }
end
Expand Down

0 comments on commit 38eee81

Please sign in to comment.