def _get_volume_ref(self, volume_ref_name): """Get the volume moref from the ref name.""" return vim.get_moref(volume_ref_name, 'VirtualMachine')