We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72fc9c0 commit b6f52f0Copy full SHA for b6f52f0
1 file changed
adapters/powershell/psDscAdapter/psDscAdapter.psm1
@@ -12,7 +12,7 @@ function Get-DSCResourceModules {
12
$listPSModuleFolders = $env:PSModulePath.Split([IO.Path]::PathSeparator)
13
$dscModulePsd1List = [System.Collections.Generic.HashSet[System.String]]::new()
14
foreach ($folder in $listPSModuleFolders) {
15
- if (!(Test-Path $folder)) {
+ if (!(Test-Path $folder -ErrorAction Ignore)) {
16
continue
17
}
18
0 commit comments