From e75c36590c629be0ca9d76c1c83c69898aa099f2 Mon Sep 17 00:00:00 2001 From: dataking Date: Thu, 24 Nov 2016 00:08:40 -0800 Subject: [PATCH] systemd_unit_file fix --- lynis-report-converter.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lynis-report-converter.pl b/lynis-report-converter.pl index 615296c..583a59f 100755 --- a/lynis-report-converter.pl +++ b/lynis-report-converter.pl @@ -160,13 +160,13 @@ if ($debug) { if ($json) { require JSON; # tidy up some of the "object" variables - my @sduf = @{$lynis_report_data{'systemd_unit_file[]'}}; + my @sduf = @{$lynis_report_data{'systemd_unit_file'}}; my @sduf_new; foreach my $uf ( @sduf ) { my ($name,$status) = split(/\|/, $uf); push @sduf_new, { 'name' => $name, 'state' => $status }; } - $lynis_report_data{'systemd_unit_file[]'} = \@sduf_new; + $lynis_report_data{'systemd_unit_file'} = \@sduf_new; my @ipa = @{$lynis_report_data{'installed_packages_array'}}; my @ipa_new; foreach my $pkg ( @ipa ) {