Subject: | per-host arguments is broken |
Hi
It seems that per-host arguments is broken.
If I choose to add
$poller->add { desthost => '1.3.3.7', arg => { Community => "test" } }
$poller->add { desthost => '1.3.3.8', arg => { Community => "test2" } }
It will poll both hosts using the "test" community. Same goes for
callback and heap.
I think the problematic code is the following,
diff Effective_orig.pm Effective.pm
289,291c289,291
< arg => $in{'arg'} || $self->arg,
< callback => $in{'callback'} || $self-
Show quoted text
>callback,
< heap => $in{'heap'} || $self->heap,
---
Show quoted text> arg => $self->arg,
> callback => $self->callback,
> heap => $self->heap,