Commit ef40c537 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

_MaybeParseUnit: The elements are dicts not arrays

Signed-off-by: default avatarRené Nussbaumer <>
Reviewed-by: default avatarIustin Pop <>
parent cd415612
......@@ -3441,12 +3441,12 @@ def _MaybeParseUnit(elements):
"""Parses and returns an array of potential values with units.
parsed = []
for e in elements:
if e == constants.VALUE_DEFAULT:
parsed = {}
for k, v in elements.items():
if v == constants.VALUE_DEFAULT:
parsed[k] = v
parsed[k] = utils.ParseUnit(v)
return parsed
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment