Issue #7670 has been updated by Nick Lewis.

Status changed from In Topic Branch Pending Merge to Merged - Pending Release
Assignee deleted (Ivan Porto Carrero)

Merged a fix for this to master in 
commit:97927e321d1e24554ad21b92ef4afb1bd64c0167.

Our implementation will fall back to loading all facts if the fact can't be 
loaded by name. This is similar to what the facter application does. As for 
Ubuntu detection, it seems like looking at /etc/lsb-release is redundant with 
what the facts in lsb.rb do and was only helpful as a fallback. Now that we 
always properly load them, we should just use the lsb.rb facts. Similarly for 
operatingsystemrelease, which is really just Facter.value(:lsbrelease). I've 
opened #7722 to track that work.
----------------------------------------
Bug #7670: operatingsystem fact incorrect after clear on Ubuntu
https://projects.puppetlabs.com/issues/7670

Author: Ken Bowley
Status: Merged - Pending Release
Priority: Immediate
Assignee: 
Category: library
Target version: 
Keywords: 
Branch: ticket-7670
Affected Facter version: 1.5.9


Facter returns incorrect facts for "operatingsystem" and 
"operatingsystemrelease" after Facter.clear is called when running on Ubuntu.

    $ irb
    irb(main):001:0> require 'rubygems'
    => true
    irb(main):002:0> require 'facter'
    => true
    irb(main):003:0> Facter["operatingsystem"].value
    => "Ubuntu"
    irb(main):004:0> Facter.clear
    => nil
    irb(main):005:0> Facter["operatingsystem"].value
    => "Debian"

This causes puppet to report the wrong operatingsystem, and breaks many 
manifests on our current deployment.


-- 
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://projects.puppetlabs.com/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.

Reply via email to