fix: get_group_list() returned invalid members list (was not used anywhere)

This commit is contained in:
Stéphane Lesimple 2022-01-21 13:28:38 +00:00 committed by Stéphane Lesimple
parent 07f5c35458
commit 7fa2523bfc

View file

@ -746,8 +746,7 @@ sub get_group_list {
and not grep { $name eq $_ } qw{ keykeeper keyreader })
{
$name =~ s/^key//;
my @members = split(/ /, $members);
$groups{$name} = {gid => $gid, members => split(/ /, $members)};
$groups{$name} = {gid => $gid, members => [split(/ /, $members)]} if ($name ne '');
}
}
$_cache_get_group_list{$groupType} = R('OK', value => \%groups);