diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-05-19 01:44:05 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-05-19 01:44:05 -0700 |
commit | 4ce7356d6d08cf02dde23b6e2fe2066a26ec45b2 (patch) | |
tree | 9e9953b6240efe270603a19151d91c9c8a0508dc /lib/chef/mixin/params_validate.rb | |
parent | a125c8a450c4368bfdb1668679dd7153d53757c6 (diff) | |
download | chef-4ce7356d6d08cf02dde23b6e2fe2066a26ec45b2.tar.gz |
Working on network layer
Diffstat (limited to 'lib/chef/mixin/params_validate.rb')
-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 741e932006..2f6e432024 100644 --- a/lib/chef/mixin/params_validate.rb +++ b/lib/chef/mixin/params_validate.rb @@ -155,7 +155,7 @@ class Chef def _pv_respond_to(opts, key, method_name_list) value = _pv_opts_lookup(opts, key) if value != nil - method_name_list.to_a.each do |method_name| + [ method_name_list ].flatten.each do |method_name| unless value.respond_to?(method_name) raise ArgumentError, "Option #{key} must have a #{method_name} method!" end |