Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/puppet/provider/base_dsc_lite/powershell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

Puppet::Type.type(:base_dsc_lite).provide(:powershell) do
confine feature: :pwshlib
confine operatingsystem: :windows
defaultfor operatingsystem: :windows
confine 'os.name' => :windows
defaultfor 'os.name' => :windows

commands powershell: (if File.exist?("#{ENV.fetch('SYSTEMROOT', nil)}\\sysnative\\WindowsPowershell\\v1.0\\powershell.exe")
"#{ENV.fetch('SYSTEMROOT', nil)}\\sysnative\\WindowsPowershell\\v1.0\\powershell.exe"
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type/dsc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def change_to_s(currentvalue, newvalue)
Provider for dsc type
DOC
confine feature: :dsc_lite
defaultfor operatingsystem: :windows
defaultfor 'os.name' => :windows

mk_resource_methods
end
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def builddepends

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

mk_resource_methods
end
Loading