1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #1020: Fix bug in cancel and reboot methods. (was calling wrong method)

This commit is contained in:
Ruben S.Montero 2011-12-26 13:33:14 +01:00
parent a5996c514f
commit d736284dfb

View File

@ -89,7 +89,7 @@ class VMwareDriver
# ------------------------------------------------------------------------ #
def cancel(deploy_id)
# Destroy the VM
rc, info = perform_action("virsh -c #{@uri} destroy #{deploy_id}")
rc, info = do_action("virsh -c #{@uri} destroy #{deploy_id}")
exit info if rc == false
@ -103,7 +103,7 @@ class VMwareDriver
# Reboots a running VM #
# ------------------------------------------------------------------------ #
def reboot(deploy_id)
rc, info = perform_action("virsh -c #{@uri} reboot #{deploy_id}")
rc, info = do_action("virsh -c #{@uri} reboot #{deploy_id}")
exit info if rc == false