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:
committed by
Thomas Lamprecht
parent
227501c063
commit
5279ee745f
@ -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'/']
|
||||
|
Reference in New Issue
Block a user