Merge "Fix v1 API."

This commit is contained in:
Zuul 2019-09-26 13:51:32 +00:00 committed by Gerrit Code Review
commit 0cd97ed559
2 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,7 @@ from pecan import rest
from wsme import types as wtypes
from cyborg.api.controllers import base
from cyborg.api.controllers import v1
from cyborg.api.controllers import v2
from cyborg.api import expose
@ -51,6 +52,7 @@ class RootController(rest.RestController):
"""The default API version"""
v2 = v2.Controller()
v1 = v1.Controller()
@expose.expose(Root)
def get(self):

View File

@ -135,6 +135,13 @@ function create_cyborg_accounts {
"$CYBORG_API_URL/v2" \
"$CYBORG_API_URL/v2" \
"$CYBORG_API_URL/v2"
# NOTE (Sundar): If you need v1 API, enable the section below.
# get_or_create_service "cyborg_legacy" "accelerator_legacy" "Cyborg Legacy"
# get_or_create_endpoint "cyborg_legacy" \
# "$REGION_NAME" \
# "$CYBORG_API_URL/v1" \
# "$CYBORG_API_URL/v1" \
# "$CYBORG_API_URL/v1"
fi
}