[Nagiosplug-devel] N::P bug in handling >2 repeated arguments from .ini config

Thomas Guyot-Sionnest dermoth at aei.ca
Fri Nov 16 13:42:42 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24/10/07 04:24 PM, Thomas Guyot-Sionnest wrote:
> Hi there,
> 
> I just added duplicate arguments support for a N::P plugin (=s@). From
> command-line it works like a charm, but when using more than two
> repeated arguments in nagios-plugins.ini I get something like this:
> 
> $VAR1 = [
>           'ARRAY(0x8545ee8)',
>           'string_from_last_argument'
>         ];
> 
> I'm not sure if there is a reason for the particular syntax in
> lib/Nagios/Plugin/Config.pm but changing it to a simple push fixed the
> problem. Since it's not much tested I'd like that someone review it
> before it goes in...

Ok, no comments yet and this is definitely broken. I'll commit this soon
is no one objects.

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPZBC6dZ+Kt5BchYRAg6lAJ9AmPvA69LnIlpQCFqpl/DN1ZUP+gCePPwR
rtHQM3XeXYJt1ACJVUnxEVQ=
=QyG9
-----END PGP SIGNATURE-----




More information about the Devel mailing list