Skip to content

Commit 29da6d7

Browse files
committed
Find PSDesiredStateConfiguration
1 parent 7342f16 commit 29da6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/powershell/convertDscResource.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function ConvertTo-DscObject
9898
$Tokens = $null
9999
$ParseErrors = $null
100100

101-
(Get-Module -Name 'PSDesiredStateConfiguration' | ConvertTo-Json) | Write-DscTrace Debug
101+
(Get-Module -Name 'PSDesiredStateConfiguration' -ListAvailable | ConvertTo-Json) | Write-DscTrace Debug
102102

103103
# Load the PSDesiredStateConfiguration module
104104
Import-Module -Name 'PSDesiredStateConfiguration' -RequiredVersion '1.1' -Force -ErrorAction stop -ErrorVariable $importModuleError

0 commit comments

Comments
 (0)