diff options
author | Ashish Vijayaram <ashish@mozilla.com> | 2013-12-19 03:56:44 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-12-19 03:56:44 +0100 |
commit | 14a2a956773d0ff7a0b8ecdf246f92d866f21d03 (patch) | |
tree | ef994c2d60fccc868dd5c2d0d5ec0f330ebe9fa5 /contrib | |
parent | 14cab4a5c8fb83298a2b0254a3992bbf5c828d7e (diff) | |
download | bugzilla-14a2a956773d0ff7a0b8ecdf246f92d866f21d03.tar.gz bugzilla-14a2a956773d0ff7a0b8ecdf246f92d866f21d03.tar.xz |
Bug 951020: fix nagios check
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/nagios_blocker_checker.pl | 5 |
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 = ?'; |