CanVMPerformActions checks if a VM can perform actions (no pending operations). Returns true if the VM can perform actions, false otherwise.
(vm *api.VM)
| 393 | // CanVMPerformActions checks if a VM can perform actions (no pending operations). |
| 394 | // Returns true if the VM can perform actions, false otherwise. |
| 395 | func (s *State) CanVMPerformActions(vm *api.VM) bool { |
| 396 | isPending, _ := s.IsVMPending(vm) |
| 397 | return !isPending |
| 398 | } |
| 399 | |
| 400 | // GetVMPendingOperation returns the pending operation description for a VM if any. |
| 401 | // Returns empty string if no operation is pending. |
nothing calls this directly
no test coverage detected