Issue #5022 has been updated by Jordan Sissel.
That doesn't work due to the way variable scoping is currently handled. <pre> % cat test.pp $foo = "hello" $foo += "world" # Using puppet 2.6.2 % puppet apply test.pp Cannot append, variable foo is defined in this scope at /home/jls/test.pp:2 on node snack.home </pre> ---------------------------------------- Bug #5022: Multiline strings would be nice. https://projects.puppetlabs.com/issues/5022 Author: Jordan Sissel Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected version: Keywords: string concatenate multiline Branch: Had a fellow in the IRC channel just now ask about how to do multiline strings (without newlines in them). The real request was for string concat so that he could wrap a long string sanely on multiple lines. Examples of things I tried that I expected to work: <pre> Code: $foo = "hello" + "world" Error: left operand of + is not a number at /home/jls/test.pp:2 on node snack.home Code: $foo = "test" \ "hello" Error: Could not parse for environment production: Syntax error at '\' at /home/jls/test.pp:1 Code (this one works, but clutters up the manifest): $foo = regsubst( "test hello", "\n *", " ") notice($foo) Output: notice: Scope(Class[main]): test hello </pre> Thoughts? Strings can span lines, but carry newlines. Would be nice if we could concatenate strings. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
