Issue #1859 has been reported by twpayne. ---------------------------------------- Bug #1859: facter does not report individual facts correctly http://projects.reductivelabs.com/issues/show/1859
Author: twpayne Status: Unreviewed Priority: Normal Assigned to: Category: Target version: 1.5.2 Complexity: Unknown Keywords: On my Ubuntu 8.10 system, current git master, facter reports the wrong fact when ask to report a single fact: <pre> $ date Fri Jan 9 16:50:11 CET 2009 $ git pull Already up-to-date. $ git status # On branch master nothing to commit (working directory clean) $ bin/facter | grep operatingsystem operatingsystem => Ubuntu operatingsystemrelease => 8.10 $ bin/facter operatingsystem Debian </pre> In this case lib/facter/operatingsystem.rb uses the lsbdistid fact to determine whether the operating system is Ubuntu. However, it seems that when asked for the operatingsystem fact, lsbdistid is not calculated so operatingsystem reports the wrong value. If facts are allowed to depend on other facts then facter should calculate the dependent facts correctly when required. If facts are not allowed to depend on other facts then the test for operatingsystem should be fixed. The command<pre>grep -rlF Facter.value lib/facter </pre>gives a list of at least some of the files that need to be fixed. ---------------------------------------- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
