MT#6969 Ignore capturex return value

changes/67/467/1
Andreas Granig 12 years ago
parent f89efc9095
commit 30bc5d383d

@ -3,7 +3,7 @@ use Sipwise::Base;
use namespace::sweep;
BEGIN { extends 'Catalyst::Controller'; }
use JSON qw(decode_json encode_json);
use IPC::System::Simple qw/capturex/;
use IPC::System::Simple qw/capturex EXIT_ANY/;
use NGCP::Panel::Form::CustomerMonthlyFraud;
use NGCP::Panel::Form::CustomerDailyFraud;
use NGCP::Panel::Form::CustomerBalance;
@ -1368,7 +1368,7 @@ sub pbx_device_sync :Chained('pbx_device_base') :PathPart('sync') :Args(0) {
my @cmd_args = ($c->config->{cloudpbx}->{sync},
$sub->username, $sub->domain->domain,
$sub->password);
my $out = capturex([0], "sh", @cmd_args);
my $out = capturex(EXIT_ANY, "sh", @cmd_args);
$c->log->debug(">>>>>>>>>>>> got output:\n$out");
NGCP::Panel::Utils::Message->info(
c => $c,

Loading…
Cancel
Save