Issue #11524 has been updated by Bill Weiss.
Fair enough. It's not super urgent, but it surprised me. Thanks! ---------------------------------------- Bug #11524: Puppet validate doesn't catch what I expect to be syntax errors https://projects.puppetlabs.com/issues/11524 Author: Bill Weiss Status: Accepted Priority: Normal Assignee: Category: parser Target version: Affected Puppet version: 2.7.8 Keywords: Branch: I totally believe this is valid syntax, but I don't expect it to be :) Thoughts? <pre> bweiss@rezal-evad-gib:~/repos/puppet/modules/ittools$ cat manifests/init.pp class ittools { jkhsdkjhfsd hjksdfjk dsjkfhdjkshf lkj package { ['nmap', 'collectl', 'ruby-devel.x86_64', 'rpm-build', 'rubygem-fpm', 'subversion' ]: ensure => latest } } bweiss@rezal-evad-gib:~/repos/puppet/modules/ittools$ puppet --version 2.7.9 bweiss@rezal-evad-gib:~/repos/puppet/modules/ittools$ puppet parser validate manifests/init.pp bweiss@rezal-evad-gib:~/repos/puppet/modules/ittools$ echo $? 0 </pre> However, a more normal syntax error would be caught: <pre> bweiss@rezal-evad-gib:~/repos/puppet/modules/ittools$ cat manifests/init.pp class ittools { package { ['nmap', 'collectl', 'ruby-devel.x86_64', 'rpm-build', 'rubygem-fpm', 'subversion' ]: ensure => latest' } } bweiss@rezal-evad-gib:~/repos/puppet/modules/ittools$ puppet parser validate !$ puppet parser validate manifests/init.pp err: Could not parse for environment production: Unclosed quote after '' in ' } } ' at /home/bweiss/repos/puppet/modules/ittools/manifests/init.pp:4 err: Try 'puppet help parser validate' for usage bweiss@rezal-evad-gib:~/repos/puppet/modules/ittools$ echo $? 1 </pre> This was also the case in 2.7.8, if that matters. -- 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.
