Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

New-DscResourceWikiSite: Array DataTypes Have Changed Format #359

Open
X-Guardian opened this issue Jan 15, 2020 · 3 comments
Open

New-DscResourceWikiSite: Array DataTypes Have Changed Format #359

X-Guardian opened this issue Jan 15, 2020 · 3 comments

Comments

@X-Guardian
Copy link
Contributor

Details of the problem, bug, or enhancement

Following on from PR #354 and #358 , Array DataTypes are now output differently from New-DscResourceWikiSite in the WikiPages module.

For a MOF that contains a string array property, previously New-DscResourceWikiSite would output a datatype of String[]. Now it outputs a datatype of StringArray[].

This is because Get-MofSchemaObject used to output the DataType property as a System.String object, but now it is a Microsoft.Management.Infrastructure.CimType object which has a ToString value of StringArray for arrays rather then String as it was previously.

Suggested solution to the issue

New-DscResourceWikiSite could be changed to either remove the logic that adds [] to array datatypes, or strip the Array part of the string depending on what output is decided upon.

@gaelcolas
Copy link

Did you mean to post this in dsccommunity/DscResource.Test ?

@gaelcolas
Copy link

Afraid I can't transfer this as it's not allowed by GitHub:
You can only transfer issues between repositories owned by the same user or organization account.

@X-Guardian
Copy link
Contributor Author

No, these functions don't yet exist in DscResource.Test.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants