File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11module VagrantPlugins
22 module HostManager
3- VERSION = '1.8.1 '
3+ VERSION = '1.8.2 '
44 end
55end
You can’t perform that action at this time.
0 commit comments