Jira (PUP-9401) Puppet 6 unable to parse a heredoc

2019-01-07 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-9401  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Puppet 6 unable to parse a heredoc   
 

  
 
 
 
 

 
 There is also PUP-9163 which is similar and it affected 4.10. That fix went it, but it was not the end of problems like that as PUP-9303 showed. For PUP-9303 the problem was really understood as an architectural problem and corrected accordingly.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-9401) Puppet 6 unable to parse a heredoc

2019-01-07 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-9401  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Puppet 6 unable to parse a heredoc   
 

  
 
 
 
 

 
 Note I get the error as far back as 4.10.x, so I don't think this is a regression:  
 
 
 
 
 $ git reset --hard upstream/4.10.x  
 
 
 HEAD is now at 0f76a0dd07 Merge pull request #7316 from joshcooper/bundler-2  
 
 
 $ bundle update  
 
 
 ...  
 
 
 $ bundle exec puppet parser validate manifest.pp  
 
 
 Error: Could not parse for environment production: Syntax error at '[' at /Users/josh/work/puppet/manifest.pp:5:22
  
 
 
 
   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian 

Jira (PUP-9401) Puppet 6 unable to parse a heredoc

2019-01-07 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-9401  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Puppet 6 unable to parse a heredoc   
 

  
 
 
 
 

 
 Thanks for the report Mihkel Ader. This looks like a duplicate of PUP-9303. When I test your manifest against that PR it works correctly:  
 
 
 
 
 $ git rev-parse HEAD  
 
 
 62901adaa57e2c6469227421c52aca0541fc485c  
 
 
 $ cat manifest.pp  
 
 
 class heredoc {  
 
 
    
 
 
    
 
 
   $sg_config = @("EOT"/L)  
 
 
 -cert ${facts['domain']}.crt.pem \  
 
 
 -cacert ${facts['domain']}.ca.pem \  
 
 
 -key ${facts['domain']}.key.pem \  
 
 
 | EOT  
 
 
 }  
 
 
 $ bx puppet parser validate manifest.pp  
 
 
 $ bundle exec