summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshish Vijayaram <ashish@mozilla.com>2013-12-19 03:56:44 +0100
committerByron Jones <bjones@mozilla.com>2013-12-19 03:56:44 +0100
commit14a2a956773d0ff7a0b8ecdf246f92d866f21d03 (patch)
treeef994c2d60fccc868dd5c2d0d5ec0f330ebe9fa5
parent14cab4a5c8fb83298a2b0254a3992bbf5c828d7e (diff)
downloadbugzilla-14a2a956773d0ff7a0b8ecdf246f92d866f21d03.tar.gz
bugzilla-14a2a956773d0ff7a0b8ecdf246f92d866f21d03.tar.xz
Bug 951020: fix nagios check
-rwxr-xr-xcontrib/nagios_blocker_checker.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/nagios_blocker_checker.pl b/contrib/nagios_blocker_checker.pl
index 85bcc84de..732878107 100755
--- a/contrib/nagios_blocker_checker.pl
+++ b/contrib/nagios_blocker_checker.pl
@@ -113,8 +113,9 @@ if ($config->{assignee}) {
push @values, Bugzilla::User->check({ name => $config->{assignee} })->id;
} elsif ($config->{component}) {
$where = 'bugs.product_id = ? AND bugs.component_id = ? AND bugs.assigned_to = ?';
- push @values, Bugzilla::Product->check({ name => $config->{product} })->id;
- push @values, Bugzilla::Component->check({ name => $config->{component} })->id;
+ my $product = Bugzilla::Product->check({ name => $config->{product} });
+ push @values, $product->id;
+ push @values, Bugzilla::Component->check({ product => $product, name => $config->{component} })->id;
push @values, Bugzilla::User->check({ name => $config->{unassigned} })->id;
} else {
$where = 'bugs.product_id = ? AND bugs.assigned_to = ?';