Ejemplo n.º 1
0
    def combine_merge_anchors(lhs: CommentedMap, rhs: CommentedMap) -> None:
        """
        Merge YAML Merge Keys.

        Parameters:
        1. lhs (CommentedMap) The map to merge into
        2. rhs (CommentedMap) The map to merge from
        """
        for mele in rhs.merge:
            lhs.add_yaml_merge([mele])
Ejemplo n.º 2
0
 def combine_merge_anchors(lhs: CommentedMap, rhs: CommentedMap):
     """Merge YAML merge keys."""
     for mele in rhs.merge:
         lhs.add_yaml_merge([mele])