diff --git a/lib/perl/OVH/Bastion/allowkeeper.inc b/lib/perl/OVH/Bastion/allowkeeper.inc index 32a1b1d..00106bf 100644 --- a/lib/perl/OVH/Bastion/allowkeeper.inc +++ b/lib/perl/OVH/Bastion/allowkeeper.inc @@ -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);