'Update the volume model\'s status and return it.'

def _get_volume_model_updates(self, ctxt, volumes, cgId, status='available'):

    volume_model_updates = []
    LOG.info('Updating    status    for    CG:    %(id)s.', {'id': cgId})
    if volumes:
        for volume in volumes:
            volume_model_updates.append({'id': volume['id'], 'status': status})
    else:
        LOG.info('No    volume    found    for    CG:    %(cg)s.', {'cg': cgId})
    return volume_model_updates
