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

String concatenation no longer works with future parser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.6.2
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:
      None
    • Template:

      Description

      The follow code does not work:

      $prefix = "else"
      $some_path = "/path/to/something"
      if $prefix != undef {
      	$some_path += "_${prefix}"
      }
      

      It returns with the error: Evaluation Error: The value '/path/to/something' cannot be converted to Numeric.

      Following the documentation at https://docs.puppetlabs.com/puppet/latest/reference/lang_variables.html#appending-assignment this should work

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andy Andrew Parker
              Reporter:
              rygorde4 Ryan Gordon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support