Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch - ensure that facts specified by environment variables take precedence #4

Closed
wants to merge 1 commit into from

Conversation

richardc
Copy link

No description provided.

There was this unpleasant inconsistency:

On an OSX host:

    $ facter operatingsystem
    Darwin

    $ facter_operatingsystem=Not_Darwin facter operatingsystem
    Not_Darwin

But on a linux/solaris host:

    $ facter operatingsystem
    CentOS

    $ facter_operatingsystem=Not_CentOS facter operatingsystem
    CentOS

As the operatingsystem fact resolution for linux-based kernels has higher
precedence than the environment variable as it has more matching confines than
the value from the environment variable.

This patch adds from_environment to the resolution mechanism, which makes the
resolution have an artificially high weight by claiming the length of its confines
array is 1 billion.
@jhelwig
Copy link

jhelwig commented Mar 23, 2011

Unfortunately, we don't use pull requests for the Puppet Labs projects. The Development Lifecycle wiki page has the preferred method of submitting patches. Thanks for doing the work on this!

@jhelwig jhelwig closed this Mar 23, 2011
@jamtur01 jamtur01 reopened this Aug 31, 2011
@jamtur01
Copy link

Hi Richard - can you please rebase this and we'll get it merged.

@adrienthebo
Copy link

This was merged in 9f4c5c6 and released in 1.6.0

@adrienthebo adrienthebo closed this Sep 7, 2011
smortex pushed a commit to smortex/facter that referenced this pull request Nov 25, 2022
jiongle1 referenced this pull request in scantist-ossops-m2/facter Apr 5, 2024
joshcooper pushed a commit to joshcooper/facter that referenced this pull request Jan 27, 2025
Delete unused code coverage workflow and related code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants