Skip to content

Merge breaks when merging a node with a sequence. #36

@ArcticSnowman

Description

@ArcticSnowman

Given a node that is a sequence

node1: &node1
  - item1
  - item2
  - item3

node2:
  <<: [ *node1 ]

I get the following error:

Expected hash for merge key at centos7/v5.18.2/lib/perl5/YAML/PP/Constructor.pm line 160, <STDIN> line 1.
 at centos7/v5.18.2/lib/perl5/YAML/PP/Loader.pm line 92.
node1: &node1
  item1: {}
  item2: {}
  item3: {}

node2:
  <<: [ *node1 ]

Works for node that are hashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions