Fix a typing error

Typo: tricircle/cinder_apigw/controllers/volume.py

Change-Id: I20849932d490dbb8af9fde658f208acce8f5ed12
This commit is contained in:
XiongQiu 2016-05-23 22:10:33 +08:00
parent 922b56a92d
commit 1235e5f9cf

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: