diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-19 16:27:41 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-19 16:27:41 -0800 |
commit | ce2df5b4f1daa038d3a3b77cc829ecce1a5d7c7e (patch) | |
tree | 204876f08993bac8607f6b42ad53467f34341b6e | |
parent | 416cf5d770cfc819eee3e47a12eeadbc36a93f4f (diff) | |
download | chef-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.rb | 2 |
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 |