Skip to content

Commit 0916fc9

Browse files
authored
Merge pull request #106 from voreilly/main
Update legacy facts to be compatible with Puppet 8
2 parents 0d24466 + c3a1677 commit 0916fc9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/facter/windows_env.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
Facter.add('windows_env') do
4-
confine osfamily: :windows
4+
confine 'os.family': :windows
55
setcode do
66
require 'puppet/util/windows/process'
77

lib/puppet/provider/windows_env/windows_env.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def evaluate
4343
desc 'Manage Windows environment variables'
4444

4545
confine feature: :windows_env
46-
confine osfamily: :windows
47-
defaultfor osfamily: :windows
46+
confine 'os.family': :windows
47+
defaultfor 'os.family': :windows
4848

4949
# For testing registry open result
5050
ERROR_FILE_NOT_FOUND = 2

0 commit comments

Comments
 (0)