IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30370


Ignore:
Timestamp:
Jan 25, 2011, 3:58:45 PM (15 years ago)
Author:
rhenders
Message:

dealing with inconsistant way pantasks_client prints output of 'show.labels'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czartool/Pantasks.pm

    r29076 r30370  
    120120        chomp($line);
    121121        if (!$self->outputOk($line)) {return \@labels;}
    122         if ($line =~ m/pantasks:\s+/) {$passedHeader=1; next;}
     122
     123        # sometimes a label can be on the same line as the panstasks prompt
     124        if ($line =~ m/pantasks: (.*)/) {
     125            if (length($1) > 0) {push(@labels, $1);}
     126            $passedHeader=1; next;
     127        }
    123128        if ($passedHeader) {push(@labels, $line);}
    124129    }
Note: See TracChangeset for help on using the changeset viewer.