def __init__(self): """Initialize view builder.""" super(ViewBuilderV21, self).__init__() self._address_builder = views_addresses.ViewBuilderV21() # TODO(alex_xu): In V3 API, we correct the image bookmark link to # use glance endpoint. We revert back it to use nova endpoint for v2.1. self._image_builder = views_images.ViewBuilder()
def __init__(self): """Initialize view builder.""" super(ViewBuilder, self).__init__() self._address_builder = views_addresses.ViewBuilderV21() self._image_builder = views_images.ViewBuilder() self._flavor_builder = views_flavors.ViewBuilder()