Skip to content

Commit e2d466f

Browse files
Merge pull request #224 from puppetlabs/MAINT-Addressing_undetected_legacy_facts
(MAINT) Addressing undetected legacy facts
2 parents 746fc17 + 8fbdb79 commit e2d466f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/puppet/provider/base_dsc_lite/powershell.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
Puppet::Type.type(:base_dsc_lite).provide(:powershell) do
88
confine feature: :pwshlib
9-
confine operatingsystem: :windows
10-
defaultfor operatingsystem: :windows
9+
confine 'os.name' => :windows
10+
defaultfor 'os.name' => :windows
1111

1212
commands powershell: (if File.exist?("#{ENV.fetch('SYSTEMROOT', nil)}\\sysnative\\WindowsPowershell\\v1.0\\powershell.exe")
1313
"#{ENV.fetch('SYSTEMROOT', nil)}\\sysnative\\WindowsPowershell\\v1.0\\powershell.exe"

lib/puppet/type/dsc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def change_to_s(currentvalue, newvalue)
124124
Provider for dsc type
125125
DOC
126126
confine feature: :dsc_lite
127-
defaultfor operatingsystem: :windows
127+
defaultfor 'os.name' => :windows
128128

129129
mk_resource_methods
130130
end

spec/fixtures/dsc_puppetfakeresource/dsc_puppetfakeresource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def builddepends
127127

128128
Puppet::Type.type(:dsc_puppetfakeresource).provide :powershell, :parent => Puppet::Type.type(:base_dsc_lite).provider(:powershell) do
129129
confine :feature => :dsc_lite
130-
defaultfor :operatingsystem => :windows
130+
defaultfor 'os.name' => :windows
131131

132132
mk_resource_methods
133133
end

0 commit comments

Comments
 (0)