Changeset 222


Ignore:
Timestamp:
04/09/06 05:06:02 (18 years ago)
Author:
nanardon
Message:
  • properly get result from plugin, first value is exit code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/ObsData/Repository.pm

    r221 r222  
    593593            $datatype, 
    594594        ); 
    595         if ($exitstatus && @result % 2 == 0) { 
     595        if ($exitstatus) { 
     596            if (@result % 2 == 0) { 
     597                $self->logging(0, 
     598                    "Plugin %s for %s exit with %s (%d values)", 
     599                    'match_plugin', 
     600                    $datatype, 
     601                    $exitstatus, 
     602                    scalar(@result), 
     603                ); 
     604                %val = @result; 
     605            } else { 
     606                $self->logging(4, 
     607                    "Plugin %s for %s return impair values %d", 
     608                    $datatype, 
     609                    $exitstatus, 
     610                    scalar(@result), 
     611                ); 
     612                return; 
     613            } 
     614        } else { 
    596615            $self->logging(0, 
    597                 "Plugin %s for %s exit with %s (%d values)", 
    598                 'match_plugin', 
    599                 $datatype, 
    600                 $exitstatus, 
    601                 scalar(@result), 
    602             ); 
    603             %val = @result; 
    604         } else { 
    605             $self->logging(4, 
    606                 "No result from plugin %s of %s", 
     616                "Plugin %s of %s exit with null, skipping", 
    607617                'match_plugin', 
    608618                $datatype, 
    609619            ); 
    610         # FIXME return;   
     620            return; 
    611621        } 
    612622    } 
Note: See TracChangeset for help on using the changeset viewer.