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,