Fixes introduced error running vagrant hostmanager command

This commit is contained in:
januzis 2014-03-12 21:23:33 +01:00
parent c6219655f5
commit 5a22784753
1 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,14 @@ module VagrantPlugins
@machine = env[:machine]
@global_env = @machine.env
@provider = env[:provider]
# config_global is deprecated from v1.5
if Gem::Version.new(::Vagrant::VERSION) >= Gem::Version.new('1.5')
@config = @global_env.vagrantfile.config
else
@config = @global_env.config_global
end
@logger = Log4r::Logger.new('vagrant::hostmanager::update_guest')
end