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

(MODULES-7768) Handle nil in delete_undef_values() function #954

Merged

Conversation

hlindberg
Copy link
Contributor

PUP-9112 changed use of :undef inside structured values to instead
using nil in Puppet 6.0.0. The delete_undef_values() function
was not prepared to handle this and would not delete nil from
Array or Hash values.

This commit fixes this problem.

All 3.x functions in stdlib were reviewed for the same problem, and only delete_undef_values() had this problem.

PUP-9112 changed use of `:undef` inside structured values to instead
using `nil` in Puppet 6.0.0. The `delete_undef_values()` function
was not prepared to handle this and would not delete `nil` from
`Array` or `Hash` values.

This commit fixes this problem.
@MikaelSmith
Copy link

pick doesn't? Oh, I guess args.compact takes care of it.

@hlindberg hlindberg merged commit 2ad640c into puppetlabs:master Sep 10, 2018
tohuwabohu added a commit to tohuwabohu/puppet-duplicity that referenced this pull request Sep 23, 2018
Work around broken delete_undef_values() function which doesn't handle
undef values on Puppet 6 anymore (see https://github
.com/puppetlabs/puppetlabs-stdlib/pull/954).
@davidmalloncares
Copy link
Contributor

Hey @hlindberg / @MikaelSmith - the Modules team should really be involved in these changes to stdlib as maintainers of the repo - we have no visibility of the changes, or had a chance to review and feedback - esp around any related changes to acceptance or unit tests that may be needed to prevent the module going red in our pipelines

@pmcmaw pmcmaw added the bugfix label Sep 25, 2018
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.

4 participants