From 07f5c3545838406e65b80ff619ec679882c6a893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Fri, 21 Jan 2022 13:27:55 +0000 Subject: [PATCH] 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() --- bin/cron/osh-piv-grace-reaper.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cron/osh-piv-grace-reaper.pl b/bin/cron/osh-piv-grace-reaper.pl index b717d7c..f7ea60f 100755 --- a/bin/cron/osh-piv-grace-reaper.pl +++ b/bin/cron/osh-piv-grace-reaper.pl @@ -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);