Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG/v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Main changes

- Fixed Invoke-DscResource error when a class-based resource module path contains a space.
- Fixed an issue with array parameters is key-value pairs (#128).

[v2.0.7]: https://www.powershellgallery.com/packages/PSDesiredStateConfiguration/2.0.7

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ function ConvertTo-MOFInstance
$targetTypeName = $PropertyTypes[$p.Name].TypeConstraint

# see if the target type is an array
$asArray = $p.Name -eq 'DependsOn' -or $targetTypeName -match 'Array'
$asArray = $p.Name -eq 'DependsOn' -or $targetTypeName -match 'Array' -or ((-not [string]::IsNullOrEmpty($targetTypeName)) -and $targetTypeName.EndsWith('[]'))

# Convert the CIM typename to the appropriate .NET type to use
# to convert the input object into an appropriately encoded string
Expand Down