VM#invoke_callback now returns an array of the results of the actions which implemented the callback.
This commit is contained in:
parent
063ea60d40
commit
0ceee33a51
|
@ -114,10 +114,9 @@ error
|
||||||
@actions.each do |action|
|
@actions.each do |action|
|
||||||
results << action.send(name, *args) if action.respond_to?(name)
|
results << action.send(name, *args) if action.respond_to?(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
results
|
results
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
if @vm.running?
|
if @vm.running?
|
||||||
logger.info "VM is running. Forcing immediate shutdown..."
|
logger.info "VM is running. Forcing immediate shutdown..."
|
||||||
|
|
Loading…
Reference in New Issue