completion: fix ACL path completion

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2020-10-19 09:54:29 +02:00 committed by Thomas Lamprecht
parent 02479720c0
commit 16cdb9563b

View File

@ -157,12 +157,12 @@ pub fn complete_acl_path(_arg: &str, _param: &HashMap<String, String>) -> Vec<St
let mut list = Vec::new(); let mut list = Vec::new();
list.push(String::from("/")); list.push(String::from("/"));
list.push(String::from("/storage")); list.push(String::from("/datastore"));
list.push(String::from("/storage/")); list.push(String::from("/datastore/"));
if let Ok((data, _digest)) = config() { if let Ok((data, _digest)) = config() {
for id in data.sections.keys() { for id in data.sections.keys() {
list.push(format!("/storage/{}", id)); list.push(format!("/datastore/{}", id));
} }
} }