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:
parent
a5996c514f
commit
d736284dfb
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user