diff --git a/src/bin/proxmox-backup-client.rs b/src/bin/proxmox-backup-client.rs index 3b4501c3..4ef2e69d 100644 --- a/src/bin/proxmox-backup-client.rs +++ b/src/bin/proxmox-backup-client.rs @@ -1105,7 +1105,7 @@ fn complete_server_file_name(_arg: &str, param: &HashMap) -> Vec if let Some(list) = data.as_array() { for item in list { - if let Some(filename) = item.as_str() { + if let Some(filename) = item["filename"].as_str() { result.push(filename.to_owned()); } }