mirror of https://github.com/apache/kafka.git
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:
parent
d00cf520fb
commit
c8b60b6344
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue