Skip to content

Commit 79d47ce

Browse files
author
Andrew
authored
Fixed Invoke-DscResource error when a class-based resource module path contains a space (#112)
1 parent 727085e commit 79d47ce

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGELOG/v2.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# v2 Changelog
22

3+
## [v2.0.7]
4+
5+
### Main changes
6+
7+
- Fixed Invoke-DscResource error when a class-based resource module path contains a space.
8+
9+
[v2.0.7]: https://www.powershellgallery.com/packages/PSDesiredStateConfiguration/2.0.7
10+
311
## [v2.0.6]
412

513
### Main changes

src/PSDesiredStateConfiguration/PSDesiredStateConfiguration.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
RootModule = 'PSDesiredStateConfiguration.psm1'
1010

1111
# Version number of this module.
12-
moduleVersion = '2.0.6'
12+
moduleVersion = '2.0.7'
1313

1414
# Supported PSEditions
1515
CompatiblePSEditions = @('Core')

src/PSDesiredStateConfiguration/PSDesiredStateConfiguration.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4749,7 +4749,7 @@ function Invoke-DscClassBasedResource
47494749
$iss = [System.Management.Automation.Runspaces.InitialSessionState]::CreateDefault2()
47504750
$powershell = [PowerShell]::Create($iss)
47514751
$script = @"
4752-
using module $path
4752+
using module "$path"
47534753
47544754
Write-Host -Message ([$type]::new | out-string)
47554755
return [$type]::new()

0 commit comments

Comments
 (0)