TT#182101 Fix check_allowed_ngcp_types detection

* use any instead of grep for checking the allowed_ngcp_types
  array

Change-Id: I7382a2a61764a4520cd07d2db67ffa3a5112b378
mr11.0
Kirill Solomko 3 years ago
parent a8bc49408a
commit f311177236

@ -1579,8 +1579,7 @@ sub check_allowed_ngcp_types {
my $allowed_ngcp_types = $self->get_config('allowed_ngcp_types') // [];
if (@{$allowed_ngcp_types} &&
!grep { /^\Q$c->config->{general}{ngcp_type}\E$/ }
@{$allowed_ngcp_types}) {
! any { $_ eq $c->config->{general}{ngcp_type} } @{$allowed_ngcp_types}) {
return;
}
return 1;

Loading…
Cancel
Save