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

B #5684: Remove unnecessary Delete() method (#1693)

(cherry picked from commit b059239319d82def3d4dd297356de2585270157b)
This commit is contained in:
Christian González 2022-01-10 12:27:39 +01:00 committed by Ruben S. Montero
parent 17e15f64ff
commit 75baab1bfa
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -314,12 +314,6 @@ func (vc *VMController) Rename(newName string) error {
return err
}
// Delete will remove the VM from OpenNebula
func (vc *VMController) Delete() error {
_, err := vc.c.Client.Call("one.vm.delete", vc.ID)
return err
}
// Deploy in the selected hostID and/or dsID. Enforce to return error in case of
// overcommitment. Enforce is automatically enabled for non-oneadmin users.
// Set dsID to -1 to let OpenNebula choose the datastore.