From 88a767fe8acd34b532aabf89d417f13598dfb051 Mon Sep 17 00:00:00 2001 From: dominiquearpin Date: Fri, 24 Nov 2017 12:26:10 -0500 Subject: [PATCH] Missing select column for non-Windows 2008R2 For #109 --- lib/puppet/provider/windowsfeature/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/windowsfeature/default.rb b/lib/puppet/provider/windowsfeature/default.rb index d9c795c..f34f669 100644 --- a/lib/puppet/provider/windowsfeature/default.rb +++ b/lib/puppet/provider/windowsfeature/default.rb @@ -25,7 +25,7 @@ def self.instances result = if win2008 == true ps('Import-Module ServerManager; Get-WindowsFeature | Select Name,Installed | ConvertTo-XML -As String -Depth 4 -NoTypeInformation') else - ps('Get-WindowsFeature | ConvertTo-XML -As String -Depth 4 -NoTypeInformation') + ps('Get-WindowsFeature | Select Name,Installed | ConvertTo-XML -As String -Depth 4 -NoTypeInformation') end # create the XML document and parse the objects xml = Document.new result