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

String concatenation no longer works with future parser

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • PUP 3.6.2
    • None
    • Compiler
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support