diff --git a/wa/utils/serializer.py b/wa/utils/serializer.py index 01fac573..55990c42 100644 --- a/wa/utils/serializer.py +++ b/wa/utils/serializer.py @@ -230,6 +230,8 @@ def _wa_cpu_mask_constructor(loader, node): class _WaYamlLoader(_yaml_loader): # pylint: disable=too-many-ancestors def construct_mapping(self, node, deep=False): + if isinstance(node, MappingNode): + self.flatten_mapping(node) if not isinstance(node, MappingNode): raise ConstructorError(None, None, "expected a mapping node, but found %s" % node.id,