Skip to content

Commit 743c918

Browse files
authored
Fix module manifest to support class-based resources (#458)
1 parent d3f29e4 commit 743c918

5 files changed

Lines changed: 18 additions & 17 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- `azure-pipelines.yml`
1111
- Remove `windows-2019` images fixes [#451](https://github.com/dsccommunity/ComputerManagementDsc/issues/451).
12+
- Module manifest: Set `CmdletsToExport` to `'*'` to satisfy HQRM tests.
1213

1314
### Fixed
1415

source/ComputerManagementDsc.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
FunctionsToExport = @()
3131

3232
# 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.
33-
CmdletsToExport = @()
33+
CmdletsToExport = '*'
3434

3535
# Variables to export from this module
3636
VariablesToExport = @()

source/Examples/Resources/OfflineDomainJoin/1-OfflineDomainJoin_JoinDomainUsingODJBlob_Config.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Configuration OfflineDomainJoin_JoinDomainUsingODJBlob_Config
3030
{
3131
OfflineDomainJoin ODJ
3232
{
33-
IsSingleInstance = 'Yes'
34-
RequestFile = 'C:\ODJ\ODJBlob.txt'
33+
IsSingleInstance = 'Yes'
34+
RequestFile = 'C:\ODJ\ODJBlob.txt'
3535
}
3636
}
3737
}

source/Examples/Resources/ScheduledTask/7-ScheduledTask_RunPowerShellTaskEvery15Minutes_Config.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ Configuration ScheduledTask_RunPowerShellTaskEvery15Minutes_Config
3232
{
3333
ScheduledTask MaintenanceScriptExample
3434
{
35-
TaskName = "Custom maintenance tasks"
36-
ActionExecutable = "C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
37-
ActionArguments = "-File `"C:\scripts\my custom script.ps1`""
38-
ScheduleType = 'Once'
39-
RepeatInterval = '00:15:00'
40-
RepetitionDuration = '4.00:00:00'
41-
StopAtDurationEnd = $true
35+
TaskName = "Custom maintenance tasks"
36+
ActionExecutable = "C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
37+
ActionArguments = "-File `"C:\scripts\my custom script.ps1`""
38+
ScheduleType = 'Once'
39+
RepeatInterval = '00:15:00'
40+
RepetitionDuration = '4.00:00:00'
41+
StopAtDurationEnd = $true
4242
}
4343
}
4444
}

source/Examples/Resources/ScheduledTask/8-ScheduledTask_RunPowerShellTaskEvery15MinutesIndefinitely_Config.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ Configuration ScheduledTask_RunPowerShellTaskEvery15MinutesIndefinitely_Config
3232
{
3333
ScheduledTask MaintenanceScriptExample
3434
{
35-
TaskName = "Custom maintenance tasks"
36-
ActionExecutable = "C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
37-
ActionArguments = "-File `"C:\scripts\my custom script.ps1`""
38-
ScheduleType = 'Once'
39-
RepeatInterval = '00:15:00'
40-
RepetitionDuration = 'Indefinitely'
41-
TriggerExecutionTimeLimit = '00:15:00'
35+
TaskName = "Custom maintenance tasks"
36+
ActionExecutable = "C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
37+
ActionArguments = "-File `"C:\scripts\my custom script.ps1`""
38+
ScheduleType = 'Once'
39+
RepeatInterval = '00:15:00'
40+
RepetitionDuration = 'Indefinitely'
41+
TriggerExecutionTimeLimit = '00:15:00'
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)