Hi, I had tried installing puppet-lint sometime ago, and tried this again as you wrote, but I get a bunch of buffer overflow (see below). I have reported an issue with rodjek's github and let's see if I get an answer. Any suggestion from this forum will certainly help.
]# gem install puppet-lint *** buffer overflow detected ***: /usr/bin/ruby terminated ======= Backtrace: ========= /lib64/libc.so.6(__chk_fail+0x2f)[0x2af4423bffaf] /usr/lib64/ruby/1.8/x86_64-linux/syck.so(rb_syck_mktime+0x48e)[0x2af44284149e] /usr/lib64/ruby/1.8/x86_64-linux/syck.so(yaml_org_handler+0x860)[0x2af442841db0] /usr/lib64/ruby/1.8/x86_64-linux/syck.so(syck_defaultresolver_node_import+0x39)[0x2af442841fb9] /usr/lib64/libruby.so.1.8[0x2af441737a9e] /usr/lib64/libruby.so.1.8[0x2af441737fb8] /usr/lib64/libruby.so.1.8[0x2af441738562] ..... ..... and goes on... am I missing something trivial in here ? ]# gem --version 1.3.1 ]# ruby --version ruby 1.8.5 (2006-08-25) [x86_64-linux] ##### On Thursday, December 6, 2012 9:11:17 AM UTC-6, nikolavp wrote: > > You should consider using a good editor which will show those error for > you. You can incorporate puppet-lint for example and it will spot most > of the problems and warn you about the double quotes for performance and > clarity reasons. > > Hope that helps :-) > > Best, Nikola > > On Wed, Dec 05, 2012 at 04:19:35PM -0800, iamauser wrote: > > No worries. Your comment helped me to notice the dollar sign in front of > > the linkcase. That actually solved the issue. Now it works and yes, I > have > > added a default case as well :) > > > > Thanks > > > > > > On Wednesday, December 5, 2012 6:16:55 PM UTC-6, Jakov Sosic wrote: > > > > > > On 12/06/2012 12:58 AM, iamauser wrote: > > > > First of all, I didn't copy paste my code, rather typed it here, so > > > > indentation should be ignored. > > > > You are right, dollar sign shouldn't be there, and I think it was a > typo > > > > on my part that I failed to notice. I disagree with your comment > about > > > > singlequote or doublequote for "var". That shouldn't be an issue > here as > > > > it will consider this as string of characters. > > > > > > Sorry if my comments sounded harsh, I didn't mean to offend you. Just > > > urge you to incorporate those tools into your daily practice, which > > > would save you a lot of time and nerves ;) > > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/I07DoBUDI_gJ. > > To post to this group, send email to > > [email protected]<javascript:>. > > > To unsubscribe from this group, send email to > [email protected] <javascript:>. > > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/-HUe5ZaJeB4J. 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-users?hl=en.
