Skip to content

Commit

Permalink
Also ignore warnings on get-package for the same reason as
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdbarnes committed Mar 25, 2019
1 parent b1bc0ed commit 0f8ed1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/package/powershellcore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def install_options(options)
def self.instances_command
# Get-Package is way faster than Get-InstalledModule
<<-COMMAND
Get-Package -AllVersions -ProviderName PowerShellGet -Scope AllUsers -Type Module |
Get-Package -AllVersions -ProviderName PowerShellGet -Scope AllUsers -Type Module -WarningAction 'SilentlyContinue' |
Group-Object -Property Name | % {
[ordered]@{
'name' = $_.Name
Expand Down

0 comments on commit 0f8ed1b

Please sign in to comment.