diff options
-rw-r--r-- | lib/chef/event_dispatch/dispatcher.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/event_dispatch/dispatcher.rb b/lib/chef/event_dispatch/dispatcher.rb index 0f05365ab1..966a3f32ec 100644 --- a/lib/chef/event_dispatch/dispatcher.rb +++ b/lib/chef/event_dispatch/dispatcher.rb @@ -32,7 +32,7 @@ class Chef mth = s.method(method_name) # Trim arguments to match what the subscriber expects to allow # adding new arguments without breaking compat. - args = args.take(arity) if mth.arity < args.size && mth.arity >= 0 + args = args.take(mth.arity) if mth.arity < args.size && mth.arity >= 0 mth.call(*args) end end |