1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

fix occasionally random ordering for fail2ban (#388)

If

        $j->canonical(1);

need another changes, please fix that. 
I get this from: https://github.com/librenms/librenms-agent/pull/240
This commit is contained in:
Plamen Vasilev
2021-12-16 19:27:36 +02:00
committed by GitHub
parent f304b1a2c0
commit 38628e3528

View File

@@ -157,7 +157,7 @@ sub stats{
}
my $j=JSON->new;
$j->canonical(1);
if ( $_[0] ){
$j->pretty(1);
return $j->encode( \%toReturn );