Hello! I''m trying to use pre-commit SVN hook for checking puppet syntax. For it I try to use some scripts from this thread: http://groups.google.com/group/puppet-users/browse_thread/thread/50ff2eb268f982da?pli=1 But when I try some of the scripts I see the common problem, expression like this: # puppet --parseonly --ignoreimport file.pp produces no output, but "file.pp" has a known broken syntax. What I need to change in this statement to see information about syntax errors at STDOUT? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Could you please paste the entire script? Theoretically it should produce output. If you use the script from here: http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control it should work just fine! Copy / paste the script and see if it helps. On Dec 10, 4:15 pm, "a.gorodin...@mail.ru" <a.gorodin...@mail.ru> wrote:> Hello! > > I''m trying to use pre-commit SVN hook for checking puppet syntax. For > it I try to use some scripts from this thread:http://groups.google.com/group/puppet-users/browse_thread/thread/50ff... > > But when I try some of the scripts I see the common problem, > expression like this: > # puppet --parseonly --ignoreimport file.pp > produces no output, but "file.pp" has a known broken syntax. What I > need to change in this statement to see information about syntax > errors at STDOUT?-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Dec 10, 7:15 am, "a.gorodin...@mail.ru" <a.gorodin...@mail.ru> wrote:> Hello! > > I''m trying to use pre-commit SVN hook for checking puppet syntax. For > it I try to use some scripts from this thread:http://groups.google.com/group/puppet-users/browse_thread/thread/50ff... > > But when I try some of the scripts I see the common problem, > expression like this: > # puppet --parseonly --ignoreimport file.pp > produces no output, but "file.pp" has a known broken syntax. What I > need to change in this statement to see information about syntax > errors at STDOUT?I think this is an open issue[1] wth 2.6.x that''s borked my precommits also. Looks like it''s fixed in the testing branch. [1] http://projects.puppetlabs.com/issues/5081 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.