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

Several resources: Correctly remove trailing commas and semi colons between items of an array of CIM instances added by Convert-DSCStringParamToVariable #3364

Closed
wants to merge 3 commits into from

Conversation

ricmestre
Copy link
Contributor

@ricmestre ricmestre commented Jun 6, 2023

Pull Request (PR) description

Correctly remove trailing commas and semi colons between items of an array of CIM instances added by Convert-DSCStringParamToVariable.

Chunk of code added to all resources that call Convert-DSCStringParamToVariable and that at least one of those calls has an object with an array of CIM instances (or may have depending on the exported resource).

This Pull Request (PR) fixes the following issues

@ricmestre ricmestre requested a review from NikCharlebois as a code owner June 6, 2023 10:58
@ricmestre ricmestre mentioned this pull request Jun 6, 2023
@NikCharlebois
Copy link
Collaborator

Wouldn't it be a better idea to modify the ConvertTo-DSCStringParamToVariable method instead of addressing it individually in every resource? We should look at updating ReverseDSC instead.

@ricmestre
Copy link
Contributor Author

@NikCharlebois hello regardless of how it's done I need to get this solved ASAP since I'm soon to get this into production, let me know where I can can change and I'll send a new PR. I really need this solved!

@ricmestre
Copy link
Contributor Author

@NikCharlebois Hi, just raised PR microsoft/ReverseDSC#33 to solve this issue, as mentioned there if that fix goes in then #3362 and #3364 can be closed. After that all DSC resources that still have that chunk of code can have it removed since it won't be required any longer.

@ricmestre
Copy link
Contributor Author

Issue should be resolved directly in ReverseDSC and conversation about this is already on going on microsoft/ReverseDSC#33 therefore this PR can be closed.

@ricmestre ricmestre closed this Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues exporting with several resources in Intune that have embedded instances
2 participants