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

Get-MofSchemaObject: Credential Attribute Output DataType has Changed #360

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

Comments

@X-Guardian
Copy link
Contributor

Details of the problem, bug, or enhancement

Following on from PR #354, EmbeddedInstance("MSFT_Credential") MOF attributes output by Get-MofSchemaObject now have a DataType of Instance whereby previously they had a DataType of String.

Verbose logs showing the problem (if applicable)

Previous EmbeddedInstance("MSFT_Credential") attribute properties:

Name                           Value
----                           -----
State                          Write
DataType                       String
ValueMap
IsArray                        False
Name                           Credential
Description                    Specifies the user account credentials to use to perform the task.
EmbeddedInstance               MSFT_Credential

Current EmbeddedInstance("MSFT_Credential") attribute properties:

Name                           Value
----                           -----
Name                           Credential
ValueMap
Description                    Specifies the user account credentials to use to perform the task.
DataType                       Instance
State                          Write
IsArray                        False
EmbeddedInstance               MSFT_Credential

This output is used by New-DscResourcePowerShelHelp to create PowerShell Help files and New-DscResourceWikiSite to create Wiki documentation pages.

Suggested solution to the issue

Neither Instance nor String is actually very useful. What would be better is for an EmbeddedInstance of MSFT_Credential to output PSCredential as the DataType, and for other EmbeddedInstance types, output the EmbeddedInstance value as the DataType?

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

1 participant