Skip to content

Commit 246d471

Browse files
committed
Trace one more time
1 parent bd99f63 commit 246d471

File tree

2 files changed

+31
-27
lines changed

2 files changed

+31
-27
lines changed

extensions/powershell/convertDscResource.psd1

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,48 @@
33

44
@{
55

6-
# Script module or binary module file associated with this manifest.
7-
RootModule = 'convertDscResource.psm1'
6+
# Script module or binary module file associated with this manifest.
7+
RootModule = 'convertDscResource.psm1'
88

9-
# Version number of this module.
10-
moduleVersion = '0.0.1'
9+
# Version number of this module.
10+
moduleVersion = '0.0.1'
1111

12-
# ID used to uniquely identify this module
13-
GUID = '95f93fd3-34ff-417e-80e4-f0112918a0bd'
12+
# ID used to uniquely identify this module
13+
GUID = '95f93fd3-34ff-417e-80e4-f0112918a0bd'
1414

15-
# Author of this module
16-
Author = 'Microsoft Corporation'
15+
# Author of this module
16+
Author = 'Microsoft Corporation'
1717

18-
# Company or vendor of this module
19-
CompanyName = 'Microsoft Corporation'
18+
# Company or vendor of this module
19+
CompanyName = 'Microsoft Corporation'
2020

21-
# Copyright statement for this module
22-
Copyright = '(c) Microsoft Corporation. All rights reserved.'
21+
# Copyright statement for this module
22+
Copyright = '(c) Microsoft Corporation. All rights reserved.'
2323

24-
# Description of the functionality provided by this module
25-
Description = 'PowerShell Desired State Configuration Module for converting DSC Resources to JSON format'
24+
# Description of the functionality provided by this module
25+
Description = 'PowerShell Desired State Configuration Module for converting DSC Resources to JSON format'
2626

27-
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
28-
FunctionsToExport = @(
27+
# Minimum version of the Windows PowerShell engine required by this module
28+
PowerShellVersion = '5.1'
29+
30+
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
31+
FunctionsToExport = @(
2932
'Write-DscTrace'
3033
'Build-DscConfigDocument'
3134
)
3235

33-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
34-
CmdletsToExport = @()
36+
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
37+
CmdletsToExport = @()
3538

36-
# Variables to export from this module
37-
VariablesToExport = @()
39+
# Variables to export from this module
40+
VariablesToExport = @()
3841

39-
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
40-
AliasesToExport = @()
42+
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
43+
AliasesToExport = @()
4144

42-
PrivateData = @{
43-
PSData = @{
44-
ProjectUri = 'https://github.com/PowerShell/DSC'
45+
PrivateData = @{
46+
PSData = @{
47+
ProjectUri = 'https://github.com/PowerShell/DSC'
48+
}
4549
}
4650
}
47-
}

extensions/powershell/convertDscResource.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if ($Script:IsPowerShellCore) {
55
Import-Module -Name 'PSDesiredStateConfiguration' -RequiredVersion 1.1 -UseWindowsPowerShell -WarningAction SilentlyContinue
66
}
77
Import-Module -Name 'PSDesiredStateConfiguration' -MinimumVersion 2.0.7 -Prefix 'Pwsh' -WarningAction SilentlyContinue
8-
} else {
8+
} else {
99
Import-Module -Name 'PSDesiredStateConfiguration' -RequiredVersion 1.1 -WarningAction SilentlyContinue
1010
}
1111

@@ -22,6 +22,7 @@ function Write-DscTrace {
2222
$host.ui.WriteErrorLine($trace)
2323
}
2424

25+
"The current module paths: $env:PSModulePath" | Write-DscTrace -Operation Trace
2526
function Build-DscConfigDocument {
2627
[CmdletBinding()]
2728
[OutputType([System.Collections.Specialized.OrderedDictionary])]

0 commit comments

Comments
 (0)