6.0.0-git
2018-12-15

[#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 (at) naberezny (dot) com
Requester tacman (at) gmail (dot) com
Created 2009-07-24 (3431 days ago)
Due
Updated 2010-09-24 (3004 days ago)
Assigned 2009-07-24 (3431 days ago)
Resolved
Milestone
Patch No

History
2010-09-24 22:21:27 Jan Schneider Version ⇒ Git master
 
2009-07-24 11:53:28 Jan Schneider Assigned to Mike Naberezny
State ⇒ Assigned
 
2009-07-24 11:44:20 tacman (at) gmail (dot) com Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ YAML data merge isn't supported
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
Reply to this comment
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








Saved Queries