From 30bc5d383d90d569ebf61b6a0ce495f2af2b98c8 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Wed, 29 Oct 2014 17:39:02 +0100 Subject: [PATCH] MT#6969 Ignore capturex return value --- lib/NGCP/Panel/Controller/Customer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Controller/Customer.pm b/lib/NGCP/Panel/Controller/Customer.pm index ace2757498..0d620658bb 100644 --- a/lib/NGCP/Panel/Controller/Customer.pm +++ b/lib/NGCP/Panel/Controller/Customer.pm @@ -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,