Skip to content

Commit 70ab41b

Browse files
committed
Import error
1 parent a5371c8 commit 70ab41b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extensions/powershell/convert-resource.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ param (
66

77
begin {
88
$lines = [System.Collections.Generic.List[string]]::new()
9-
"The current module paths: $env:PSModulePath" | Write-DscTrace -Operation Trace
9+
$Operation = 'Trace'
10+
11+
$trace = @{$Operation.ToLower() = "The current module paths: $env:PSModulePath" } | ConvertTo-Json -Compress
12+
$host.ui.WriteErrorLine($trace)
1013

1114
$scriptModule = Import-Module "$PSScriptRoot/convertDscResource.psd1" -Force -PassThru -WarningAction SilentlyContinue -ErrorAction Stop
1215
}

0 commit comments

Comments
 (0)