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-442) Correct boolean properties behavior #291

Merged
merged 1 commit into from
Feb 3, 2014

Conversation

hunner
Copy link
Contributor

@hunner hunner commented Jan 31, 2014

The boolean properties had a few things incorrect with them.

  • Any value passed was considered true. This was compounded further by the next issue.
  • When the read property was false, it was set to 'nil'. This caused <property> => false to not work after the previous was fixed.

else
define_method "#{property}=" do |value|
@property_hash[:needs_change] = true
end
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually just backporting #288 to the ip6tables provider, but isn't part of the boolean fix.

The boolean properties had a few things incorrect with them.

- Any value passed was considered `true`. This was compounded further by
  the next issue.
- When the read property was false, it was set to 'nil'. This caused
  `<property> => false` to not work after the previous was fixed.

Random other fixes to tests that were failing or poorly implemented are
also included
apenney pushed a commit that referenced this pull request Feb 3, 2014
(MODULES-442) Correct boolean properties behavior
@apenney apenney merged commit 299c846 into puppetlabs:master Feb 3, 2014
@hunner hunner deleted the isfragment_fix branch February 3, 2014 21:34
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