On Thu, Feb 12, 2009 at 6:17 AM, Paul Nasrat <pnas...@googlemail.com> wrote: > >> Using the fact value has been completely unreliable. I'll be bug >> reporting it once I've worked out the shape of the problem better. > > That's a completely fine reason but concerning none the less > >> $ irb >>>> require 'facter' >> => true >>>> Facter.value("operatingsystem") >> => "Darwin" >>>> Facter.value("macosx_productversion") >> => nil >> >> $ facter | grep productversion >> macosx_productversion => 10.5.6 > > OK this is the whole find dynamic or namespaced facts by name and we > don't load all facts on library load any more. > > http://projects.reductivelabs.com/issues/1365 > > The code would work in puppet as it does a loadall > >>> require 'facter' > => true >>> Facter.loadfacts > => true >>> Facter["macosx_productversion"].value > => "10.5.6"
ahah. So this is the problem. I was testing using ralsh (which I've become quite insistent on having working properly with my stuff) and that doesn't load the facts. I need to manually do a Facter.loadfacts in my provider for that to work. Another bug I imagine... ? > > Paul > > > > -- Nigel Kersten Systems Administrator Tech Lead - MacOps --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---