api2/admin/datastore: accept "/" as path for root

makes more sense than sending "root'"

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Dominik Csapak
2021-02-16 18:06:53 +01:00
committed by Thomas Lamprecht
parent 227501c063
commit 5279ee745f
2 changed files with 2 additions and 1 deletions

View File

@ -1328,7 +1328,7 @@ pub fn catalog(
let mut catalog_reader = CatalogReader::new(reader);
let path = if filepath != "root" {
let path = if filepath != "root" && filepath != "/" {
base64::decode(filepath)?
} else {
vec![b'/']