[Bps-public-commit] RT-Extension-Nagios branch, master, updated. fb7a5ee1fefcc454fd3123e98579c04f922b81fe

? sunnavy sunnavy at bestpractical.com
Mon Apr 4 01:06:47 EDT 2011


The branch, master has been updated
       via  fb7a5ee1fefcc454fd3123e98579c04f922b81fe (commit)
      from  440ca9f4748cb1ec1ddefdaf4babe965f04fc711 (commit)

Summary of changes:
 lib/RT/Action/UpdateNagiosTickets.pm |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit fb7a5ee1fefcc454fd3123e98579c04f922b81fe
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon Apr 4 13:06:34 2011 +0800

    no Ticket->Resolve in 4.0

diff --git a/lib/RT/Action/UpdateNagiosTickets.pm b/lib/RT/Action/UpdateNagiosTickets.pm
index 0c643d5..26fa7f7 100644
--- a/lib/RT/Action/UpdateNagiosTickets.pm
+++ b/lib/RT/Action/UpdateNagiosTickets.pm
@@ -65,7 +65,7 @@ subject with values $type, $category, $host, $problem_type and $problem_severity
             }
 
             if ( $type eq 'RECOVERY' ) {
-                my ( $ret, $msg ) = $new_ticket->Resolve();
+                my ( $ret, $msg ) = $new_ticket->SetStatus('resolved');
                 if ( !$ret ) {
                     $RT::Logger->error( 'failed to resolve ticket '
                           . $new_ticket->id
@@ -84,13 +84,13 @@ subject with values $type, $category, $host, $problem_type and $problem_severity
                         'failed to comment ticket ' . $ticket->id . ": $msg" );
                 }
 
-                ( $ret, $msg ) = $ticket->Resolve();
+                ( $ret, $msg ) = $ticket->SetStatus('resolved');
                 if ( !$ret ) {
                     $RT::Logger->error(
                         'failed to resolve ticket ' . $ticket->id . ": $msg" );
                 }
             }
-            my ( $ret, $msg ) = $new_ticket->Resolve();
+            my ( $ret, $msg ) = $new_ticket->SetStatus('resolved');
             if ( !$ret ) {
                 $RT::Logger->error(
                     'failed to resolve ticket ' . $new_ticket->id . ":$msg" );

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list