mirror of
https://github.com/ovh/the-bastion.git
synced 2025-01-04 06:27:11 +08:00
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:
parent
bd13e5a476
commit
07f5c35458
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue