Alarm definition breakes Alarms view

Change-Id: Iab4bfabc21dee3709ba3d7f13e67b3a12a90b396
Story: 2008005
Task: 40654
This commit is contained in:
Michal Piotrowski 2020-08-13 11:42:20 +02:00
parent feed099eaf
commit 2bfbee4bb9
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ def show_metric_dimensions(data):
if len(data['metrics']) > 1:
commondimensions = data['metrics'][0]['dimensions']
for metric in data['metrics'][1:]:
for k in commondimensions.keys():
for k in tuple(commondimensions):
if k not in metric['dimensions'].keys() or \
commondimensions[k] != metric['dimensions'][k]:
del commondimensions[k]