Thanks John!
That fixed problem. I believe, in that, case symbol should be used over 
string in a hash? Cheers!!


On Tuesday, October 22, 2013 2:12:17 PM UTC+1, jcbollinger wrote:
>
>
>
> Your hash keys are symbols, whereas argument 0 to the function is a 
> string.  'linux' != :linux.  Try adding
>
>   cls = cls.to_sym if cls.is_a? String 
>
> between initially setting cls and testing whether it is a key of your 
> hash.
>
>
> John
>
>

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

Reply via email to