Closed KieranP closed 14 years ago
After digging into something else, came across this:
@vms_on_this_hd = @hd.interface.machine_ids.collect { |vm_uuid| VirtualBox::VM.find(vm_uuid) }
Which returns the same result, and much cleaner. Still would be nice to have this through something like:
@hd.machines
I have the following code:
Basically, it takes all vms, checks each storage containers medium attachments to see if the hard drive is related.
Ideally, something like this could be available: