Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Update default.rb - #4

Closed
kristvanbesien wants to merge 1 commit into
openstack-archive:masterfrom
kristvanbesien:master-fix
Closed

Update default.rb#4
kristvanbesien wants to merge 1 commit into
openstack-archive:masterfrom
kristvanbesien:master-fix

Conversation

@kristvanbesien

Copy link
Copy Markdown

Since the value of @resource[:master_slave] is either :true or :false, and symbols in Ruby are always truthy, this needs to be compared explicitly with the symbol :true.

This is actually the same fix as in the following pull request:
redhat-openstack/puppet-pacemaker#66

This was closed, because the project was moved from redhat-openstack to openstack, with the suggestion to resubmit the fix to the new location. However this was never done by the original author of the fix.

Hence I am submitting this fix myself.

In ruby the "truth" value of a set variable is always true, so we need to explicitly compare with :true
@openstack-gerrit

Copy link
Copy Markdown

Thank you for contributing to openstack/puppet-pacemaker!

openstack/puppet-pacemaker uses Gerrit for code review.

If you have never contributed to OpenStack before make sure you have read the
getting started documentation:
http://docs.openstack.org/infra/manual/developers.html#getting-started

Otherwise please visit
http://docs.openstack.org/infra/manual/developers.html#development-workflow
and follow the instructions there to upload your change to Gerrit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants