IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26460


Ignore:
Timestamp:
Dec 18, 2009, 10:12:03 AM (16 years ago)
Author:
bills
Message:

handle strange error where run returns an undef error code. Set state of run to failed_revert
if one of the components fails to revert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/magic_destreak_revert.pl

    r26290 r26460  
    294294        run(command => $command, verbose => $verbose);
    295295
     296    if (!defined $error_code) {
     297        print STDERR "run( $command ) returned undef error_code!!!!!\n");
     298        return $PS_EXIT_UNKNOWN_ERROR;
     299    }
    296300    return $error_code >> 8;
    297301}
     
    392396    my $command = "$magicdstool -updaterun";
    393397    $command   .= " -magic_ds_id $magic_ds_id";
    394     $command   .= " -fault $exit_code";
     398    $command   .= " -set_state failed_revert";
    395399    $command   .= " -dbname $dbname" if defined $dbname;
    396400
Note: See TracChangeset for help on using the changeset viewer.