OlliesDad@googlemail.com
2012-Mar-21 12:04 UTC
[Puppet Users] Templates has_variable scoping etc
Hello, Trying to write out a file with some facter variable handling i.e. if has_variable?("@lsbdistdescription") then my_OS = @lsbdistdescription else my_OS = @operatingsystem + " " + @operatingsystemrelease end Therefore if the facter variable @lsbdistdescription doesn''t exist (i.e. Solaris) it will build the value from other facts. But this always falls through to the else condition. What''s going on here ? Thanks Paul -- 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.