[Tickets #8453] YAML data merge isn't supported

bugs at horde.org bugs at horde.org
Fri Jul 24 11:44:20 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/8453
------------------------------------------------------------------------------
  Ticket             | 8453
  Created By         | tacman at gmail.com
  Summary            | YAML data merge isn't supported
  Queue              | Horde Framework Packages
  Version            | FRAMEWORK_3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


tacman at gmail.com (2009-07-24 07:44) wrote:

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










More information about the bugs mailing list