[Bps-public-commit] RT-Extension-Nagios branch, master, updated. 1d793997bcba6316f6b54ed6b4ece151995ed053
? sunnavy
sunnavy at bestpractical.com
Wed Jun 22 06:03:56 EDT 2011
The branch, master has been updated
via 1d793997bcba6316f6b54ed6b4ece151995ed053 (commit)
from 46d0f655d5adb98b436aca5f75311bca380bc7aa (commit)
Summary of changes:
lib/RT/Action/UpdateNagiosTickets.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 1d793997bcba6316f6b54ed6b4ece151995ed053
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Jun 21 22:57:40 2011 +0800
$type can be lowercase in subject
diff --git a/lib/RT/Action/UpdateNagiosTickets.pm b/lib/RT/Action/UpdateNagiosTickets.pm
index 8d0a617..880c695 100644
--- a/lib/RT/Action/UpdateNagiosTickets.pm
+++ b/lib/RT/Action/UpdateNagiosTickets.pm
@@ -72,7 +72,7 @@ subject with values $type, $category, $host, $problem_type and $problem_severity
}
}
- if ( $type eq 'RECOVERY' ) {
+ if ( uc $type eq 'RECOVERY' ) {
my ( $ret, $msg ) = $merged_ticket->SetStatus($resolved);
if ( !$ret ) {
$RT::Logger->error( 'failed to resolve ticket '
@@ -81,7 +81,7 @@ subject with values $type, $category, $host, $problem_type and $problem_severity
}
}
}
- elsif ( $type eq 'RECOVERY' ) {
+ elsif ( uc $type eq 'RECOVERY' ) {
while ( my $ticket = $tickets->Next ) {
my ( $ret, $msg ) = $ticket->Comment(
Content => 'going to be resolved by ' . $new_ticket_id,
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list