- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
sub is_consumer_registered {
my ($type) = @_;
my $out = qx(some-proprietary-tool --type $type);
my $result = 0;
my ($status) = $out =~ /$type\s+Status: ([^,]+),/;
say '## DEBUG: status: ' . ($status // 'undef');
if ($status && $status eq 'Component registered') {
say '## DEBUG: result = 1';
$result = 1;
}
return 0;
}
guest 19.08.2014 19:42 # −4