pbs-client: fix bash autocompletion for archive-files
Previously, autocompletion of archive names, for instance in the case of $ proxmox-backup-client restore <snapshot> <TAB> did not work if no namespace was provided via the --ns option. The fix is to fall back to the root namespace if the option is not provided by the user. Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
a616c3dfd2
commit
de7f180dab
@ -297,7 +297,10 @@ pub async fn complete_server_file_name_do(param: &HashMap<String, String>) -> Ve
|
||||
Ok(v) => v,
|
||||
_ => return result,
|
||||
},
|
||||
_ => return result,
|
||||
_ => {
|
||||
// If no namespace flag is provided, we assume the root namespace
|
||||
pbs_api_types::BackupNamespace::root()
|
||||
}
|
||||
};
|
||||
|
||||
let query = json_object_to_query(json!({
|
||||
|
Loading…
x
Reference in New Issue
Block a user