

def detach_disk(self, parameters, disk_name, instance_id):
    ' Detaches the EBS mount specified in disk_name from the named instance.\n\n    Args:\n      parameters: A dict with keys for each parameter needed to connect to AWS.\n      disk_name: A str naming the EBS volume to detach.\n      instance_id: A str naming the id of the instance that the disk should be\n        detached from.\n    Returns:\n      True if the disk was detached, and False otherwise.\n    '
    conn = self.open_connection(parameters)
    try:
        conn.detach_volume(disk_name, parameters, device='/dev/sdc')
        return True
    except boto.exception.EC2ResponseError:
        AppScaleLogger.log('Could not detach volume with name {0}'.format(disk_name))
        return False

dataset/ETHPy150Open AppScale/appscale-tools/lib/agents/ec2_agent.py EC2Agent.detach_disk/VarMisuse@37/205 `instance_id`->`parameters`