Skip to content

Commit 0f72693

Browse files
AndrewSteveL-MSFT
andauthored
Update powershell-adapter/psDscAdapter/psDscAdapter.psm1
Co-authored-by: Steve Lee <[email protected]>
1 parent d18839b commit 0f72693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powershell-adapter/psDscAdapter/psDscAdapter.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function Invoke-DscCacheRefresh {
203203

204204
# fill in resource files (and their last-write-times) that will be used for up-do-date checks
205205
$lastWriteTimes = @{}
206-
Get-ChildItem -Recurse -File -Path $dscResource.ParentPath -Include "*.ps1","*.psd1","*psm1","*.mof" -ea SilentlyContinue | % {
206+
Get-ChildItem -Recurse -File -Path $dscResource.ParentPath -Include "*.ps1","*.psd1","*psm1","*.mof" -ea Ignore | % {
207207
$lastWriteTimes.Add($_.FullName, $_.LastWriteTime)
208208
}
209209

0 commit comments

Comments
 (0)