

def detach_volume(self, volume):
    for node in self.list_nodes():
        if (type(node.image) is not list):
            continue
        for disk in node.image:
            if (disk.id == volume.id):
                disk_id = disk.extra['disk_id']
                return self._do_detach_volume(node.id, disk_id)
    return False

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/opennebula.py OpenNebula_3_6_NodeDriver.detach_volume/original