]> git.proxmox.com Git - proxmox-backup.git/commitdiff
completion: fix ACL path completion
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 19 Oct 2020 07:54:29 +0000 (09:54 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Oct 2020 13:06:13 +0000 (15:06 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/config/datastore.rs

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