Skip to content

Commit

Permalink
Always dump non-aliased Anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
wwkimball committed Oct 29, 2020
1 parent bd7fa07 commit 981ed0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yamlpath/commands/yaml_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def _alias_nodes(

if anchor_name:
# Rename any pre-existing anchor or set an original anchor name
anchor_node.anchor.value = anchor_name
anchor_node.yaml_set_anchor(anchor_name, always_dump=True)
elif anchor_node.anchor.value:
# The source node already has an anchor name
anchor_name = anchor_node.anchor.value
Expand Down

0 comments on commit 981ed0d

Please sign in to comment.