Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(GH-71) Fix type def of props with optional nested cim instances #78

Merged
merged 1 commit into from
Nov 6, 2020
Merged

(GH-71) Fix type def of props with optional nested cim instances #78

merged 1 commit into from
Nov 6, 2020

Conversation

michaeltlombardi
Copy link

Prior to this commit nested CIM instances would get an incorrect Puppet type definition, where optional types would not be prefaced as such.

This commit updates the section of Get-DscResourceParameterInfoByCimClass which handles the Puppetization of the data type for nested CIM instances, adding a final check to validate whether or not the property is actually mandatory. This ensures that the types are correctly defined and can be passed as expected in a manifest.

Prior to this commit nested CIM instances would get an incorrect Puppet
type definition, where optional types would not be prefaced as such.

This commit updates the section of Get-DscResourceParameterInfoByCimClass
which handles the Puppetization of the data type for nested CIM instances,
adding a final check to validate whether or not the property is actually
mandatory. This ensures that the types are correctly defined and can be
passed as expected in a manifest.
@michaeltlombardi michaeltlombardi added the bug Something isn't working label Nov 6, 2020
@michaeltlombardi michaeltlombardi requested a review from a team as a code owner November 6, 2020 15:51
@RandomNoun7 RandomNoun7 merged commit bcb5f26 into puppetlabs:main Nov 6, 2020
@michaeltlombardi michaeltlombardi deleted the gh-71/main/fix-optional-nested-cim-instances branch November 6, 2020 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optional properties which are nested CIM instances are not always marked as optional
3 participants