Closed ykuijs closed 4 years ago
Hi @ykuijs - I think I can see the problem:
The DataType
property that is returned by Get-MofSchemaObject
is type [Microsoft.Management.Infrastructure.CimType], but we're trying to append a string to it. There is no implict cast to string for this type.
E.g.
$a = [Microsoft.Management.Infrastructure.CimType]::Real64
$a + '[]'
So the code needs to be changed to:
$dataType = $dataType.ToString() + '[]'
I'll submit a PR to correct this.
Should be fixed now @ykuijs - could you check?
With the move or SPDsc to the DSC Community org, our AppVeyor tests are broken. So right now I have no possibility to test. We are working on fixing it asap.
Details of the problem, bug, or enhancement
When reviewing the AppVeyor log of a PR, I noticed that the WikiPages.ps1 is throwing errors with objects of type Microsoft.Management.Infrastructure.CimType. The code is adding '[]' to the type, but this results in the below error.
Verbose logs showing the problem (if applicable)
Suggested solution to the issue
??