mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00:00
utils/serializser: Re-fix support for YAML anchors
Include missing `flatten_mapping` call in our implementation of `construct_mapping`. This is performed by a subclass in the default implementation which was missing in our previous fix.
This commit is contained in:
parent
1599b59770
commit
83f826d6fe
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user