fix: piv-grace-reaper: don't use hash values (had no impact)

This coding error had no impact because the values are hash references,
hence were rejected immediately as invalid accoounts by account_config()
This commit is contained in:
Stéphane Lesimple 2022-01-21 13:27:55 +00:00 committed by Stéphane Lesimple
parent bd13e5a476
commit 07f5c35458

View file

@ -48,7 +48,7 @@ if (!$fnret) {
# this'll be used in syslog
$ENV{'UNIQID'} = OVH::Bastion::generate_uniq_id()->value;
foreach my $account (%{$fnret->value}) {
foreach my $account (sort keys %{$fnret->value}) {
# if account doesn't have PIV grace, we have nothing to do
$fnret = OVH::Bastion::account_config(account => $account, public => 1, key => OVH::Bastion::OPT_ACCOUNT_INGRESS_PIV_GRACE);