Re: vmctl: fixup id. name for termination

2023-07-02 Thread Dave Voutila
Jasper Lievisse Adriaanse writes: > Hi, > > It seems there is an inconsistency when it comes to terminating a VM by > id or name (4/web point to the same VM here): > > before: > % vmctl stop 4 > stopping vm: requested to shutdown vm 4 > % vmctl stop web > stopping vm web: failed: Invalid

vmctl: fixup id. name for termination

2023-07-02 Thread Jasper Lievisse Adriaanse
Hi, It seems there is an inconsistency when it comes to terminating a VM by id or name (4/web point to the same VM here): before: % vmctl stop 4 stopping vm: requested to shutdown vm 4 % vmctl stop web stopping vm web: failed: Invalid argument Here's a diff which moves the checks out of the