(hasVM bool, vmID int, vmNode string, current *api.VM)
| 88 | } |
| 89 | |
| 90 | func shouldRestoreVMSelection(hasVM bool, vmID int, vmNode string, current *api.VM) bool { |
| 91 | if !hasVM { |
| 92 | return false |
| 93 | } |
| 94 | if current == nil { |
| 95 | return true |
| 96 | } |
| 97 | |
| 98 | return current.ID == vmID && current.Node == vmNode |
| 99 | } |
| 100 | |
| 101 | func shouldRestoreNodeSelection(hasNode bool, nodeName string, current *api.Node) bool { |
| 102 | if !hasNode { |
no outgoing calls