Add missing PY3 support in overview views
This method is ussed in Grafana Dashboards with Horizon Authentication. The panel wasn't able to display the metrics when dimensions are used as filter. Change-Id: Id6e92a371df39d2dfcfe8125ef50a76e295ab223
This commit is contained in:
parent
eb44a1031e
commit
36cc4be740
@ -279,8 +279,8 @@ class MonascaProxyView(TemplateView):
|
||||
# the `url` dimension of the service_status check.
|
||||
dimension_name_value = dimension.split(':', 1)
|
||||
if len(dimension_name_value) == 2:
|
||||
name = dimension_name_value[0].encode('utf8')
|
||||
value = dimension_name_value[1].encode('utf8')
|
||||
name = dimension_name_value[0]
|
||||
value = dimension_name_value[1]
|
||||
dim_dict[name] = urllib.parse.unquote(value)
|
||||
else:
|
||||
raise Exception('Dimensions are malformed')
|
||||
|
Loading…
x
Reference in New Issue
Block a user