Commit 3bc9fc95 authored by Petr Pudlak's avatar Petr Pudlak

Fix private parameters wrapping when deserializing JSON

On the Python side it was assumed that the blacklisted private
parameters were always dictionaries, but since they're optional, they
could be 'None' as well.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 942817f2
......@@ -111,7 +111,7 @@ def WrapPrivateValues(json):
if field in constants.PRIVATE_PARAMETERS_BLACKLIST:
if not field.endswith("_cluster"):
data[field] = PrivateDict(value)
else:
elif data[field] is not None:
for os in data[field]:
value[os] = PrivateDict(value[os])
else:
......
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