nix-community / nixops-vbox

NixOps VirtualBox backend [maintainer=@AmineChikhaoui]
GNU Lesser General Public License v3.0
22 stars 15 forks source link

_get_vm_info code incorrectly assumes well-formed output from VBoxManage #33

Closed mattoxb closed 2 years ago

mattoxb commented 2 years ago

Line 110 of virtualbox.py pipes the output of VBoxManage showvminfo --machinereadable through the lines

for l in lines:
    (k, v) = l.split("=", 1)

It happens that VBoxManage doesn't always return lines with an = in them, and this terminates the program.

mattoxb commented 2 years ago

Seems #32 addresses this already.