completion: fix ACL path completion
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
02479720c0
commit
16cdb9563b
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user