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

accept any case of boolean strings #518

Merged
merged 1 commit into from
Sep 9, 2015

Conversation

logicminds
Copy link
Contributor

  • previously the str2bool function did not accept 'TRUE' as a bool
    type. This causes the function to now accept TRUE | FALSE strings
    as a boolean type in order to be converted to a proper boolean.
  • This would also cause Y, N, YES, NO to be accepted as boolean types
    as well.

@DavidS
Copy link
Contributor

DavidS commented Sep 4, 2015

Hi Corey, this looks really useful!

Please add a short note to the description of the function in the README.

Cheers, David

  * previously the str2bool function did not accept 'TRUE' as a bool
    type.  This causes the function to now accept TRUE, FALSE strings
    as a boolean type in order to be converted to a proper boolean.
  * This would also cause Y,N, YES, NO to be accepted as boolean types
    as well.
@logicminds
Copy link
Contributor Author

Just updated the README and function description.

tphoney added a commit that referenced this pull request Sep 9, 2015
accept any case of boolean strings
@tphoney tphoney merged commit 2a7a93f into puppetlabs:master Sep 9, 2015
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