We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dffa2d8 commit b878e56Copy full SHA for b878e56
src/ALZ/Private/Config-Helpers/Set-Config.ps1
@@ -65,6 +65,12 @@ function Set-Config {
65
# Handle integer index for arrays
66
Write-Verbose "Handling integer index for array"
67
68
+ # Ensure single value array is treated as array
69
+ if(!$inputConfigItemValueType.EndsWith("]")) {
70
+ Write-Verbose "Converting single value to array for input config item $($inputConfigName)."
71
+ $inputConfigItemValue = @($inputConfigItemValue)
72
+ }
73
+
74
$index = [int]$indexString
75
if($inputConfigItemValue.Length -le $index) {
76
Write-Verbose "Input config item $($inputConfigName) does not have an index of $index."
0 commit comments