refreshVMDataAndTasks refreshes both VM data and tasks list. This is useful for operations that affect both VM state and create tasks (like volume resize and snapshot rollback).
(vm *api.VM)
| 15 | // refreshVMDataAndTasks refreshes both VM data and tasks list. |
| 16 | // This is useful for operations that affect both VM state and create tasks (like volume resize and snapshot rollback). |
| 17 | func (a *App) refreshVMDataAndTasks(vm *api.VM) { |
| 18 | a.doRefreshVMData(vm, true) |
| 19 | } |
| 20 | |
| 21 | // doRefreshVMData is the shared implementation for VM data refresh. |
| 22 | // When withTasks is true, it also refreshes the tasks list after the VM data is updated. |
no test coverage detected