|
@@ -722,10 +722,10 @@ def _SetStructValue(struct_value, value):
|
|
struct_value.string_value = value
|
|
struct_value.string_value = value
|
|
elif isinstance(value, _INT_OR_FLOAT):
|
|
elif isinstance(value, _INT_OR_FLOAT):
|
|
struct_value.number_value = value
|
|
struct_value.number_value = value
|
|
- elif isinstance(value, dict):
|
|
|
|
|
|
+ elif isinstance(value, (dict, Struct)):
|
|
struct_value.struct_value.Clear()
|
|
struct_value.struct_value.Clear()
|
|
struct_value.struct_value.update(value)
|
|
struct_value.struct_value.update(value)
|
|
- elif isinstance(value, list):
|
|
|
|
|
|
+ elif isinstance(value, (list, ListValue)):
|
|
struct_value.list_value.Clear()
|
|
struct_value.list_value.Clear()
|
|
struct_value.list_value.extend(value)
|
|
struct_value.list_value.extend(value)
|
|
else:
|
|
else:
|