Merge branch 't42'
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 28 Feb 2019 14:11:43 +0000 (15:11 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 28 Feb 2019 14:11:43 +0000 (15:11 +0100)
1  2 
xwc-jobs.pl

diff --cc xwc-jobs.pl
@@@ -75,10 -78,21 +78,23 @@@ if ( exists $info->{spcs} ) 
        }
        exit 0;
  
- }
+ } elsif ( exists $info->{infoIn} ) {
+       print join($sep, 'IP', @{ $info->{hdrIn} }),"\n";
+       foreach my $row ( @{ $info->{infoIn} } ) {
+               $row->[1] .= ':' . $info->{stsIn}->[$row->[1]];
+               print join($sep, $ip, @$row),"\n";
+       }
+       print join($sep, 'IP', @{ $info->{hdrOut} }),"\n";
+       foreach my $row ( @{ $info->{infoOut} } ) {
+               $row->[1] .= ':' . $info->{stsIn}->[$row->[1]];
+               print join($sep, $ip, @$row),"\n";
+       }
+       exit 0;
+ } 
  
 +exit 1 if ! defined $info->{hdrs}; # we didn't get expected output
 +
  my @headers = @{ $info->{hdrs} };
  unshift @headers, 'id' if $op eq 'list';
  unshift @headers, 'IP';