fix broken `getallvms.py`

A refactor seems to have broken the sample, `vm` was renamed to `virtual_machine` and since there are no tests nobody caught this.