[#8453] YAML data merge isn't supported
Summary YAML data merge isn't supported
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Assigned
Priority 1. Low
Owners mike@naberezny.com
Requester tacman@gmail.com
Created 2009-07-24 (3711 days ago)
Due
Updated 2010-09-24 (3284 days ago)
Assigned 2009-07-24 (3711 days ago)
Resolved
Milestone
Patch No

Comments
tacman@gmail.com 2009-07-24 11:44:20
It looks like hash references and data merges aren't working.  I was 
running the example from wikipedia,

http://en.wikipedia.org/wiki/Yaml#Data_merge_and_references, and 
instead of merging the data for the second step,

it's creating an array value of '>>' and populating that.



# sequencer protocols for Laser eye surgery

---

- step:  &id001                  # defines anchor label &id001

     instrument:      Lasik 2000

     pulseEnergy:     5.4

     pulseDuration:   12

     repetition:      1000

     spotSize:        1mm



- step:

      <<: *id001                  # merges key:value pairs defined in 
step1 anchor

      spotSize:       2mm         # overrides "spotSize" key's value



- step:

      <<: *id001                  # merges key:value pairs defined in 
step1 anchor

      pulseEnergy:    500.0       # overrides key

      alert: >                    # adds additional key

            warn patient of

            audible pop