We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f955b81 commit 1b4d236Copy full SHA for 1b4d236
1 file changed
src/dsc/psresourceget.ps1
@@ -820,6 +820,11 @@ function PopulatePSResourceListObject {
820
}
821
822
823
+if ($null -eq (Get-Module -Name Microsoft.PowerShell.PSResourceGet)) {
824
+ Write-Trace -level trace -message "Microsoft.PowerShell.PSResourceGet module is not imported. Importing it."
825
+ Import-Module -Name Microsoft.PowerShell.PSResourceGet -Force -ErrorAction Stop -Verbose
826
+}
827
+
828
switch ($Operation.ToLower()) {
829
'get' { return (GetOperation -ResourceType $ResourceType) }
830
'set' { return (SetOperation -ResourceType $ResourceType) }
0 commit comments