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 <rn@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
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.append(e)
parsed = {}
for k, v in elements.items():
if v == constants.VALUE_DEFAULT:
parsed[k] = v
else:
parsed.append(utils.ParseUnit(e))
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