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)
10
10
@global_env = global_env
11
11
@config = Util . get_config ( @global_env )
12
12
@provider = provider
13
+ @logger = Log4r ::Logger . new ( 'vagrant::hostmanager::updater' )
14
+ @logger . debug ( "init updater" )
13
15
end
14
16
15
17
def update_guest ( machine )
@@ -29,10 +31,14 @@ def update_guest(machine)
29
31
# download and modify file with Vagrant-managed entries
30
32
file = @global_env . tmp_path . join ( "hosts.#{ machine . name } " )
31
33
machine . communicate . download ( realhostfile , file )
34
+
35
+ @logger . debug ( "file is: #{ file . to_s } " )
36
+ @logger . debug ( "class of file is: #{ file . class } " )
37
+
32
38
if update_file ( file , machine , false )
33
39
34
40
# upload modified file and remove temporary file
35
- machine . communicate . upload ( file , '/tmp/hosts' )
41
+ machine . communicate . upload ( file . to_s , '/tmp/hosts' )
36
42
if windir
37
43
machine . communicate . sudo ( "mv -force /tmp/hosts/hosts.#{ machine . name } #{ realhostfile } " )
38
44
else
Original file line number Diff line number Diff line change 1
1
module VagrantPlugins
2
2
module HostManager
3
- VERSION = '1.8.1 '
3
+ VERSION = '1.8.2 '
4
4
end
5
5
end
You can’t perform that action at this time.
0 commit comments