Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7768

Heredoc is not accepted by the Puppet TypeParser

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.2.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Sub-team:
    • Team:
      Platform Core
    • Story Points:
      1
    • Sprint:
      Platform Core 2017-08-22
    • Method Found:
      Needs Assessment
    • Release Notes:
      Not Needed
    • Release Notes Summary:
      advanced corner case
    • QA Risk Assessment:
      Manual

      Description

      The following type definition results in an exception when parsed.

      notice(Type(@(TYPESPEC)))
      Object[{
        attributes => {
          text => {
            type => String,
            value => @(TEXT)
              Some text
              |TEXT
          }
        }
      }]
      TYPESPEC
      

      The following works OK though, since it is parsed by the evaluating parser.

      notice(Object[{
        attributes => {
          text => {
            type => String,
            value => @(TEXT)
              Some text
              |TEXT
          }
        }
      }])
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                thomas.hallgren Thomas Hallgren
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: