

def _do_detach_volume(self, node_id, disk_id):
    action = ET.Element('ACTION')
    perform = ET.SubElement(action, 'PERFORM')
    perform.text = 'DETACHDISK'
    params = ET.SubElement(action, 'PARAMS')
    ET.SubElement(params, 'DISK', {
        'id': disk_id,
    })
    xml = ET.tostring(params)
    url = ('/compute/%s/action' % node_id)
    resp = self.connection.request(url, method='POST', data=xml)
    return (resp.status == httplib.ACCEPTED)

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/opennebula.py OpenNebula_3_6_NodeDriver._do_detach_volume/VarMisuse@75/107 `action`->`params`