-
Notifications
You must be signed in to change notification settings - Fork 25
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
Revert "Fix empty string nullification" #342
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #342 +/- ##
=======================================
Coverage 92.08% 92.08%
=======================================
Files 6 6
Lines 720 720
=======================================
Hits 663 663
Misses 57 57 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @jordanbreen28, it seems the check on Enum was too wide indeed. data[nil_attr] = '' if (attribute_type.start_with?('Optional[Enum[', 'Enum[')) && enum_values(context, nil_attr).include?('')) || attribute_type == 'String' This is what I intended to do. |
Reinstating reverted change by Clebam with additional fix suggested by original author. Original PR: #292 Revert PR: #342 Reason for revert: #340 Original author: https://github.com/Clebam
Reinstating reverted change by Clebam with additional fix suggested by original author. Original PR: puppetlabs#292 Revert PR: puppetlabs#342 Reason for revert: puppetlabs#340 Original author: https://github.com/Clebam
Reverts #292
Fixes #340