File tree Expand file tree Collapse file tree
src/ALZ/Private/Config-Helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ function Set-Config {
5050 if ($null -ne $inputConfigItem ) {
5151 Write-Verbose " Found collection input config match for $inputConfigName "
5252 $inputConfigItemValue = $inputConfigItem.Value.Value
53- if (! $inputConfigItemValue.GetType ().ImplementedInterfaces.Contains([System.Collections.ICollection ])) {
53+ Write-Verbose " Input config item value type: $ ( $inputConfigItemValue.GetType ().FullName) "
54+ $interfaces = $inputConfigItemValue.GetType ().ImplementedInterfaces
55+ Write-Verbose " Input config item interfaces: $interfaces "
56+ if (! $interfaces.Contains ([System.Collections.ICollection ])) {
5457 Write-Error " Input config item $ ( $inputConfigName ) is not an array, but an index was specified."
5558 throw " Input config item $ ( $inputConfigName ) is not an array, but an index was specified."
5659 }
You can’t perform that action at this time.
0 commit comments