Skip Menu |
 

This queue is for tickets about the Nagios-Plugin CPAN distribution.

Report information
The Basics
Id: 92032
Status: resolved
Priority: 0/
Queue: Nagios-Plugin

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.37



From zefram [...] fysh.org Fri Jan 10 11: 44:40 2014
MIME-Version: 1.0
X-Spam-Status: No, score=-2.009 tagged_above=-99.9 required=10 tests=[AWL=0.013, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.121, SPF_HELO_PASS=-0.001] autolearn=ham
Content-Disposition: inline
X-Spam-Flag: NO
Content-Type: multipart/mixed; boundary="H7DA0n3a+SnB4bJ2"
Message-ID: <20140110164431.GO21945 [...] fysh.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.009
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id E4BA9240AEE for <cpan-bug+Nagios-Plugin [...] hipster.bestpractical.com>; Fri, 10 Jan 2014 11:44:40 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tYKEYiGMugSm for <cpan-bug+Nagios-Plugin [...] hipster.bestpractical.com>; Fri, 10 Jan 2014 11:44:39 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id A86FE240AE6 for <bug-Nagios-Plugin [...] rt.cpan.org>; Fri, 10 Jan 2014 11:44:39 -0500 (EST)
Received: (qmail 30960 invoked by alias); 10 Jan 2014 16:44:39 -0000
Received: from river.fysh.org (HELO river.fysh.org) (5.135.154.127) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 10 Jan 2014 08:44:38 -0800
Received: from zefram by river.fysh.org with local (Exim 4.80 #2 (Debian)) id 1W1fCB-0002Lb-GL; Fri, 10 Jan 2014 16:44:31 +0000
Delivered-To: cpan-bug+Nagios-Plugin [...] hipster.bestpractical.com
Subject: deprecated defined(%hash) in test
Return-Path: <zefram [...] fysh.org>
X-RT-Mail-Extension: nagios-plugin
X-Original-To: cpan-bug+Nagios-Plugin [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Fri, 10 Jan 2014 16:44:31 +0000
X-Spam-Level:
To: bug-Nagios-Plugin [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Disposition: inline
X-RT-Original-Encoding: ascii
Content-Length: 427
Download (untitled) / with headers
text/plain 427b
On current perl: t/Nagios-Plugin-Functions-01.t .... 1/113 defined(%hash) is deprecated at t/Nagios-Plugin-Functions-01.t line 22. (Maybe you should just omit the defined()?) t/Nagios-Plugin-Functions-01.t .... ok The line in question is trying to detect whether the hash has been imported. I think a sensible way to test this is to check that one of the hash elements exists. Attached patch fixes. -zefram
Content-Type: text/x-diff; charset="us-ascii"
Content-Disposition: attachment; filename="defined_hash.patch"
X-RT-Original-Encoding: ascii
Content-Length: 575
Download defined_hash.patch
text/x-diff 575b

Message body is not shown because sender requested not to inline it.

MIME-Version: 1.0
In-Reply-To: <20140110164431.GO21945 [...] fysh.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20140110164431.GO21945 [...] fysh.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-18785-1390174175-969.92032-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 70
thanks, this will be fixed in the next release of Monitoring::Plugins.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-18785-1390174175-969.92032-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20140110164431.GO21945 [...] fysh.org> <rt-4.0.18-18785-1390174175-969.92032-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-23167-1411981853-1661.92032-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 255
Download (untitled) / with headers
text/plain 255b
On 2014-01-19 18:29:35, NIERLEIN wrote: Show quoted text
> thanks, this will be fixed in the next release of Monitoring::Plugins.
With perl 5.21.x, this is not anymore a warning but an error. See http://matrix.cpantesters.org/?dist=Nagios-Plugin for a fail/pass overview.
MIME-Version: 1.0
In-Reply-To: <20140110164431.GO21945 [...] fysh.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20140110164431.GO21945 [...] fysh.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-10932-1417293799-507.92032-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 112
Download (untitled) / with headers
text/plain 112b
This is fixed with the latest release. Since this module is deprecated now and the successor fixed that already.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.