From c8b60b6344e659b805ea04fc976abcae2bf9fcf8 Mon Sep 17 00:00:00 2001 From: Piotr Szwed Date: Sun, 24 Jan 2016 01:16:41 -0800 Subject: [PATCH] MINOR: Fixed undefined method `update_guest' Author: Piotr Szwed Reviewers: Ewen Cheslack-Postava Closes #802 from szwed/trunk --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index f95108e3e5f..8695ab8bbc9 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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.