Skip to content

Commit

Permalink
Added description from Andrew
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijsreyn committed Dec 7, 2024
1 parent ced2421 commit 8edeb32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion powershell-adapter/psDscAdapter/psDscAdapter.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ function Get-DSCResourceModules
{
continue
}

# Partially re-used code from the original DSCv2 Get-DSCResource code
# Get-Module -ListAvailable is slow and has a bug causing incorrect reporting
$moduleFolders = Get-ChildItem $folder -Directory
if (-not $moduleFolders) {
$moduleFolders = Get-ChildItem (Split-Path $folder -Parent) | Where-Object { $_.Name -eq (Split-Path $folder -Leaf) }
Expand Down

0 comments on commit 8edeb32

Please sign in to comment.