diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-12-04 14:32:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 14:32:10 +0100 |
commit | 0c630f4bf895d30b3aefd690f64f26b682747c39 (patch) | |
tree | 62bd87b8b268b391da53f452a67973945ef75ddd /src/analyze | |
parent | ea900d2bfeb53b8ed6bdaba26be06d49794e2df3 (diff) | |
parent | 94a80afed42a8b36d69a229bf44ba690f8f59a78 (diff) | |
download | systemd-0c630f4bf895d30b3aefd690f64f26b682747c39.tar.gz |
Merge pull request #11037 from poettering/json-table
optionally output tables as JSON
Diffstat (limited to 'src/analyze')
-rw-r--r-- | src/analyze/analyze-security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze/analyze-security.c b/src/analyze/analyze-security.c index 3d2eeade74..f8ba743f73 100644 --- a/src/analyze/analyze-security.c +++ b/src/analyze/analyze-security.c @@ -1399,7 +1399,7 @@ static int assess(const struct security_info *info, Table *overview_table, Analy int r; if (!FLAGS_SET(flags, ANALYZE_SECURITY_SHORT)) { - details_table = table_new("", "NAME", "DESCRIPTION", "WEIGHT", "BADNESS", "RANGE", "EXPOSURE"); + details_table = table_new(" ", "name", "description", "weight", "badness", "range", "exposure"); if (!details_table) return log_oom(); @@ -1973,7 +1973,7 @@ int analyze_security(sd_bus *bus, char **units, AnalyzeSecurityFlags flags) { assert(bus); if (strv_length(units) != 1) { - overview_table = table_new("UNIT", "EXPOSURE", "PREDICATE", "HAPPY"); + overview_table = table_new("unit", "exposure", "predicate", "happy"); if (!overview_table) return log_oom(); } |