Skip to content

Commit 8e34333

Browse files
Merge pull request #1 from devopsgroup-io/master
refreshing from default
2 parents 5597482 + b10bb87 commit 8e34333

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/vagrant-hostmanager/hosts_file/updater.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ def initialize(global_env, provider)
1010
@global_env = global_env
1111
@config = Util.get_config(@global_env)
1212
@provider = provider
13+
@logger = Log4r::Logger.new('vagrant::hostmanager::updater')
14+
@logger.debug("init updater")
1315
end
1416

1517
def update_guest(machine)
@@ -29,10 +31,14 @@ def update_guest(machine)
2931
# download and modify file with Vagrant-managed entries
3032
file = @global_env.tmp_path.join("hosts.#{machine.name}")
3133
machine.communicate.download(realhostfile, file)
34+
35+
@logger.debug("file is: #{file.to_s}")
36+
@logger.debug("class of file is: #{file.class}")
37+
3238
if update_file(file, machine, false)
3339

3440
# upload modified file and remove temporary file
35-
machine.communicate.upload(file, '/tmp/hosts')
41+
machine.communicate.upload(file.to_s, '/tmp/hosts')
3642
if windir
3743
machine.communicate.sudo("mv -force /tmp/hosts/hosts.#{machine.name} #{realhostfile}")
3844
else

lib/vagrant-hostmanager/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module VagrantPlugins
22
module HostManager
3-
VERSION = '1.8.1'
3+
VERSION = '1.8.2'
44
end
55
end

0 commit comments

Comments
 (0)