Skip Menu |

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

Report information
The Basics
Id: 108742
Status: new
Priority: 0/
Queue: Nagios-Object

People
Owner: Nobody in particular
Requestors: stephen.baynes [...] smoothwall.net
Cc:
AdminCc:

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



Subject: Nagios::Object::Config::find_object when not found
Date: Wed, 11 Nov 2015 17:05:37 +0000
To: bug-Nagios-Object [...] rt.cpan.org
From: Stephen Baynes <stephen.baynes [...] smoothwall.net>
Nagios::Object::Config::find_object does not return a useful value when it fails to find anything. It just falls off the end of the function. Just needs a return undef; at the end of the function to consistently return an undef value. P.S. the return () at the end of Nagios::Object::Config::find_objects won't behave as expected if called in scalar context. Should be return my @r; or return @{[]};