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]. > 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. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
