Skip to content

Commit

Permalink
Ignore warnings with Get-PSRepository.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdbarnes committed Mar 25, 2019
1 parent b8ff5e7 commit b1bc0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/psrepository/powershellcore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def flush

def self.instances_command
<<-COMMAND
@(Get-PSRepository).foreach({
@(Get-PSRepository -WarningAction SilentlyContinue).foreach({
[ordered]@{
'name' = $_.Name
'source_location' = $_.SourceLocation
Expand Down

0 comments on commit b1bc0ed

Please sign in to comment.