Fix members report broken by recent changes

The regression was introduced by
https://review.openstack.org/#/c/125018/

Change-Id: I92863b0961307ea90d3cb80904fd0cf5154032a8
This commit is contained in:
Ilya Shakhat
2014-10-02 19:42:54 +04:00
parent 74979af857
commit ea37576fbf
2 changed files with 2 additions and 2 deletions

View File

@@ -409,7 +409,7 @@ def templated(template=None, return_code=200):
# put parameters into template
ctx['metric'] = parameters.get_single_parameter(
kwargs, 'metric', use_default=True)
ctx['metric_label'] = parameters.METRIC_LABELS[ctx['metric']]
ctx['metric_label'] = parameters.METRIC_LABELS.get(ctx['metric'])
project_type = parameters.get_single_parameter(
kwargs, 'project_type', use_default=True)