src/bin/proxmox-backup-manager.rs: format datastore list output

This commit is contained in:
Dietmar Maurer
2020-04-22 17:37:20 +02:00
parent bf004ecd87
commit b1564af25a
2 changed files with 45 additions and 2 deletions

View File

@ -18,7 +18,19 @@ use crate::config::acl::{PRIV_DATASTORE_AUDIT, PRIV_DATASTORE_ALLOCATE};
description: "List the configured datastores (with config digest).",
type: Array,
items: {
type: datastore::DataStoreConfig,
description: "Datastore configuration.",
properties: {
name: {
schema: DATASTORE_SCHEMA,
},
path: {
schema: datastore::DIR_NAME_SCHEMA,
},
comment: {
optional: true,
schema: SINGLE_LINE_COMMENT_SCHEMA,
},
},
},
},
access: {