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

Bug fix: Allow false to be set in the config #1028

Merged
merged 1 commit into from
Jun 28, 2021
Merged

Conversation

dorward
Copy link
Contributor

@dorward dorward commented Jun 26, 2021

The old code used the logical OR operator so that if the value in the config was false, it would be set to true. This made it impossible to set it to false in the config. This commit changes that to the nullish coalescing operator so that it will only default to true if no value is set.

The old code used the logical OR operator so that if the value in the config was false, it would be set to true. This made it impossible to set it to false in the config. This commit changes that to the nullish coalescing operator so that it will only default to true if no value is set.
@github-actions
Copy link

PR is now waiting for a maintainer to run the acceptance tests.

Note for the maintainer: To run the acceptance tests, please comment /run-example-tests on the PR

@leezen
Copy link
Contributor

leezen commented Jun 28, 2021

Thanks for the submission!

@leezen leezen merged commit 221e091 into pulumi:master Jun 28, 2021
dixler pushed a commit that referenced this pull request Jan 21, 2022
The old code used the logical OR operator so that if the value in the config was false, it would be set to true. This made it impossible to set it to false in the config. This commit changes that to the nullish coalescing operator so that it will only default to true if no value is set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants