Skip to content

Comments

(PUP-5578) use exist? instead of '' to determine if scope key exists.#4482

Merged
thallgren merged 1 commit intopuppetlabs:masterfrom
crayfishx:HI-484
Dec 4, 2015
Merged

(PUP-5578) use exist? instead of '' to determine if scope key exists.#4482
thallgren merged 1 commit intopuppetlabs:masterfrom
crayfishx:HI-484

Conversation

@crayfishx
Copy link
Contributor

This PR is the suggested fix for PUP-5578

@thallgren
Copy link
Contributor

Looks good but a unit test is failing. You'll need to fix the last test in spec/unit/hiera/scope_spec.rb. Ideally, there should be two tests. One to verify that nil is a valid value and another to validate that a missing key is indeed missing.

@hlindberg
Copy link
Contributor

Please make the commit comment start with (PUP-5578)

@thallgren thallgren changed the title (HI-484) use exist? instead of '' to determine if scope key exists. (PUP-5578) use exist? instead of '' to determine if scope key exists. Dec 4, 2015
…y exists in the scope

(PUP-5578) fixed spec tests
@crayfishx
Copy link
Contributor Author

@hlindberg @thallgren - commit renamed and spec tests improved to cover this....

thallgren added a commit that referenced this pull request Dec 4, 2015
(PUP-5578) use exist? instead of '' to determine if scope key exists.
@thallgren thallgren merged commit 0ba6a33 into puppetlabs:master Dec 4, 2015
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.

3 participants