api: fix API macro for create_namespace.
Description and return-type was wrong. Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
dc887e93be
commit
22b5ae08f3
@ -34,13 +34,13 @@ use crate::backup::{check_ns_modification_privs, check_ns_privs, NS_PRIVS_OK};
|
||||
},
|
||||
},
|
||||
},
|
||||
returns: pbs_api_types::ADMIN_DATASTORE_LIST_NAMESPACE_RETURN_TYPE,
|
||||
returns: { type: BackupNamespace },
|
||||
access: {
|
||||
permission: &Permission::Anybody,
|
||||
description: "Requires on /datastore/{store}[/{parent}] DATASTORE_MODIFY"
|
||||
},
|
||||
)]
|
||||
/// List the namespaces of a datastore.
|
||||
/// Create a new datastore namespace.
|
||||
pub fn create_namespace(
|
||||
store: String,
|
||||
name: String,
|
||||
|
Loading…
x
Reference in New Issue
Block a user