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

(MAINT) Minor fixes to CIM instance handling #89

Merged
merged 2 commits into from
Jan 25, 2021
Merged

(MAINT) Minor fixes to CIM instance handling #89

merged 2 commits into from
Jan 25, 2021

Conversation

michaeltlombardi
Copy link
Contributor

These commits prevent duplicate instantiation of Credentials and move the logic for variable instantiation to after the values are first used in a declaration.

PSCredentials are handled specially from other CIM instances and should
not be parsed twice for the DSC invocation script; the CIM instance parsing
is redundant.
Prior to this commit the variables for credentials and cim instances
were instantiated prior to the definition of the block for that
credential or instance; this caused the variable interpolation step
to replace the value definition with a self-referencing variable which
would always be null, and thus fail to correctly instantiate.

This commit moves the code for variable instantiation to *after* the
credential or CIM instance is created, meaning only subsequent calls
will reference the variable.
@michaeltlombardi michaeltlombardi requested a review from a team as a code owner January 24, 2021 04:25
@sanfrancrisko sanfrancrisko changed the title (MAINT) Minor fixes to CIM instance handling (FIX) Minor fixes to CIM instance handling Jan 25, 2021
@sanfrancrisko sanfrancrisko changed the title (FIX) Minor fixes to CIM instance handling (MAINT) Minor fixes to CIM instance handling Jan 25, 2021
@sanfrancrisko sanfrancrisko merged commit 504700f into puppetlabs:main Jan 25, 2021
@michaeltlombardi michaeltlombardi deleted the maint/main/minor-fixes branch January 25, 2021 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants