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

Allow ${var} with curlies everywhere

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:

      Description

      Inside quoted strings, variables may be written as "$var" or "${var}", but outside quoted strings, the $var form is required, and attempts to use ${var} result in confusing error messages:

      <pre>
      var = "value"
      notify

      { "A": message => "$var", }

      # works
      notify { "B": message => "${var}", } # works
      notify

      { "C": message => $var, }

      # works
      notify { "D": message => ${var}, } # fails, with Error 400 on SERVER: Could not match '${var},' at <filename>:<line>
      </pre>

      It would be nice if ${var} could be used in this context.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              redmine.exporter redmine.exporter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support