From 16645dcebd95c23a67ccdfa55a629a23db6178ee Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Tue, 29 Jun 2021 12:02:09 +0200 Subject: [PATCH] TT#127150 contract/susbcriber exporter: fix skipped contract Change-Id: I201132d4bfdba39064618ca801113c03661d30a5 --- .../BulkProcessor/Projects/ETL/Customer/ExportCustomers.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/NGCP/BulkProcessor/Projects/ETL/Customer/ExportCustomers.pm b/lib/NGCP/BulkProcessor/Projects/ETL/Customer/ExportCustomers.pm index 60a7889..9a00899 100644 --- a/lib/NGCP/BulkProcessor/Projects/ETL/Customer/ExportCustomers.pm +++ b/lib/NGCP/BulkProcessor/Projects/ETL/Customer/ExportCustomers.pm @@ -299,7 +299,8 @@ sub _export_customer_tabular_init_context { return 0 unless _load_contract($context,$record); - if (not scalar @{$context->{contract}->{voip_subscribers}}) { + if (defined $context->{contract}->{voip_subscribers} + and not scalar @{$context->{contract}->{voip_subscribers}}) { _info($context,"contract ID $record->{id} has no subscribers, skipping",1); $result = 0; }