MT#63759 prov templates: parse .csv header

to process .csv files created via excel "save as" -> "CSV UTF-8"
directly, the header is now analyzed by Text::CSV_XS. this will
automagically determine utf BOM and separator char.

furthermore, some fixes are added for provisionion templates
base on JavaScript, after adding a trim() method for strings.

caching of domains (+resellers, billing_profiles,
profile_packages is now fixed to propery print
"unknown domain ..." for each line.

furthermore, the ngcp-provisioning_template script is fixed
to work again after changes:

  MT#60558 invoke max subscribers/group license check only on POST
  MT#59078 ?create_primary_acli= query param

Change-Id: I8b53ab1c6071de27c62d29e921634063a725c130
(cherry picked from commit 2460c6e3d8)
(cherry picked from commit 76692949a7)
mr14.0.1
Rene Krenn 7 months ago
parent 2d55570b38
commit 24617ba5be

@ -474,9 +474,11 @@ sub provision_begin {
$string =~ s/^\s+|\s+$//g;
return $string;
};
$subs{'die'} = sub {
return die(( map { _unbox_je_value($_); } @_));
};
while (each %subs) {
$context->{_je}->new_function($_ => $subs{$_});
}

Loading…
Cancel
Save