api: syslog: fix api macro to return array instead of object.
The implementation already returns Vec, so this change is to generate correct api documentation. Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
6d4b380c3d
commit
00ef50146c
@ -119,18 +119,21 @@ fn dump_journal(
|
||||
},
|
||||
},
|
||||
returns: {
|
||||
type: Object,
|
||||
type: Array,
|
||||
description: "Returns a list of syslog entries.",
|
||||
properties: {
|
||||
n: {
|
||||
type: Integer,
|
||||
description: "Line number.",
|
||||
items: {
|
||||
description: "Syslog line with line number.",
|
||||
properties: {
|
||||
n: {
|
||||
type: Integer,
|
||||
description: "Line number.",
|
||||
},
|
||||
t: {
|
||||
type: String,
|
||||
description: "Line text.",
|
||||
}
|
||||
},
|
||||
t: {
|
||||
type: String,
|
||||
description: "Line text.",
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
access: {
|
||||
permission: &Permission::Privilege(&["system", "log"], PRIV_SYS_AUDIT, false),
|
||||
|
Loading…
Reference in New Issue
Block a user