diff --git a/lib/puppet/provider/base_dsc_lite/powershell.rb b/lib/puppet/provider/base_dsc_lite/powershell.rb index d1f72044..3ba90d10 100644 --- a/lib/puppet/provider/base_dsc_lite/powershell.rb +++ b/lib/puppet/provider/base_dsc_lite/powershell.rb @@ -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' => :aix + # defaultfor 'os.name' => Debian 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"