Skip to content

confining on structured facts isn't optimal #1170

@bastelfreak

Description

@bastelfreak

Describe the Change You Would Like

https://www.puppet.com/docs/puppet/8/custom_facts.html#configuring_facts-confining-facts suggests:

confine 'os' do |os|
  os['family'] == 'RedHat'
end

but I think this is overly complicated and should be shortened:

confine 'os.family' == 'RedHat'

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedThis ticket has been accepted to our backlog and migrated internally

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions