MINOR: Fixed undefined method `update_guest'

Author: Piotr Szwed <pszwed@gmail.com>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #802 from szwed/trunk
This commit is contained in:
Piotr Szwed 2016-01-24 01:16:41 -08:00 committed by Ewen Cheslack-Postava
parent d00cf520fb
commit c8b60b6344
1 changed files with 1 additions and 1 deletions

2
Vagrantfile vendored
View File

@ -63,12 +63,12 @@ end
# stopped, skipping the update in that case since it's impossible to update
# nodes in that state.
Object.const_get("VagrantPlugins").const_get("HostManager").const_get("HostsFile").class_eval do
alias_method :old_update_guest, :update_guest
def update_guest(machine)
state_id = machine.state.id
return if state_id == :not_created || state_id == :stopped
old_update_guest(machine)
end
alias_method :old_update_guest, :update_guest
end
# TODO(ksweeney): RAM requirements are not empirical and can probably be significantly lowered.