Skip to content

Commit

Permalink
Missing select column for non-Windows 2008R2
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiquearpin authored Nov 24, 2017
1 parent d9c4576 commit 88a767f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/windowsfeature/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88a767f

Please # to comment.