summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-19 16:27:41 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-19 16:27:41 -0800
commitce2df5b4f1daa038d3a3b77cc829ecce1a5d7c7e (patch)
tree204876f08993bac8607f6b42ad53467f34341b6e
parent416cf5d770cfc819eee3e47a12eeadbc36a93f4f (diff)
downloadchef-lcg/deploy-fixes.tar.gz
make comparison really strictlcg/deploy-fixes
must be object identity and use #equals? off of the NULL_ARG object in case arg defines some insanely overridden methods.
-rw-r--r--lib/chef/mixin/params_validate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/params_validate.rb b/lib/chef/mixin/params_validate.rb
index b96e1fb978..baf210bfc5 100644
--- a/lib/chef/mixin/params_validate.rb
+++ b/lib/chef/mixin/params_validate.rb
@@ -85,7 +85,7 @@ class Chef
def nillable_set_or_return(symbol, arg, validation)
iv_symbol = "@#{symbol.to_s}".to_sym
- if arg == NULL_ARG
+ if NULL_ARG.equal?(arg)
if self.instance_variable_defined?(iv_symbol) == true
get_ivar(iv_symbol, symbol, validation)
else