Merge "Fix a typing error"

This commit is contained in:
Jenkins 2016-05-25 07:28:17 +00:00 committed by Gerrit Code Review
commit f552abdb77

View File

@ -68,15 +68,15 @@ class VolumeController(rest.RestController):
t_pod = db_api.get_top_pod(context) t_pod = db_api.get_top_pod(context)
if not t_pod: if not t_pod:
pecan.abort(500, _('Top Pod not configured')) pecan.abort(500, _('Top Pod not configured'))
LOG.error(_LE("Top Po not configured")) LOG.error(_LE("Top Pod not configured"))
return return
# TODO(joehuang): get release from pod configuration, # TODO(joehuang): get release from pod configuration,
# to convert the content # to convert the content
# b_release = pod['release'] # b_release = pod['release']
# t_release = t_pod['release'] # t_release = t_pod['release']
t_release = 'Mitaka' t_release = cons.R_MITAKA
b_release = 'Mitaka' b_release = cons.R_MITAKA
s_ctx = hclient.get_pod_service_ctx( s_ctx = hclient.get_pod_service_ctx(
context, context,
@ -165,8 +165,8 @@ class VolumeController(rest.RestController):
return {'volumes': self._get_all(context)} return {'volumes': self._get_all(context)}
# TODO(joehuang): get the release of top and bottom # TODO(joehuang): get the release of top and bottom
t_release = 'MITATA' t_release = cons.R_MITAKA
b_release = 'MITATA' b_release = cons.R_MITAKA
b_headers = self._convert_header(t_release, b_headers = self._convert_header(t_release,
b_release, b_release,
@ -349,8 +349,8 @@ class VolumeController(rest.RestController):
context = t_context.extract_context_from_environ() context = t_context.extract_context_from_environ()
# TODO(joehuang): get the release of top and bottom # TODO(joehuang): get the release of top and bottom
t_release = 'MITATA' t_release = cons.R_MITAKA
b_release = 'MITATA' b_release = cons.R_MITAKA
s_ctx = self._get_res_routing_ref(context, _id, request.url) s_ctx = self._get_res_routing_ref(context, _id, request.url)
if not s_ctx: if not s_ctx: