'Return data about the given flavor id.'

@extensions.expected_errors(404)
def show(self, req, id):

    context = req.environ['nova.context']
    try:
        flavor = flavors.get_flavor_by_flavor_id(id, ctxt=context)
        req.cache_db_flavor(flavor)
    except exception.FlavorNotFound as e:
        raise webob.exc.HTTPNotFound(explanation=e.format_message())
    return self._view_builder.show(req, flavor)
