diff options
author | Tim Smith <tsmith@chef.io> | 2019-08-07 16:30:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-07 16:30:11 -0700 |
commit | 339e94c85d0cbc6a9e11e5a79f1843ea5bbea0d0 (patch) | |
tree | 3cc668a1e3ec3212aa753d6cebeeeebe299226d7 | |
parent | 5573e06c58d9ed40aa228d43fb943e3ef2999db5 (diff) | |
parent | 789ced10df4e1dca44522996a379008542d8081c (diff) | |
download | chef-339e94c85d0cbc6a9e11e5a79f1843ea5bbea0d0.tar.gz |
Merge pull request #8781 from ab/cmp-not-passed
Property: Reorder comparison with NOT_PASSED.
-rw-r--r-- | lib/chef/property.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/property.rb b/lib/chef/property.rb index 6aa76a5236..97f7e0e7f7 100644 --- a/lib/chef/property.rb +++ b/lib/chef/property.rb @@ -347,7 +347,7 @@ class Chef # `get`, the non-lazy, coerced, validated value will always be returned. # def call(resource, value = NOT_PASSED) - if value == NOT_PASSED + if NOT_PASSED == value get(resource) else set(resource, value) |