client: don't pass empty backup-ns
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
028346e42c
commit
3c09413a0a
@ -279,7 +279,13 @@ async fn list_backup_groups(param: Value) -> Result<Value, Error> {
|
||||
|
||||
let backup_ns = optional_ns_param(¶m)?;
|
||||
let mut result = client
|
||||
.get(&path, Some(json!({ "backup-ns": backup_ns })))
|
||||
.get(
|
||||
&path,
|
||||
match backup_ns.is_root() {
|
||||
true => None,
|
||||
false => Some(json!({ "backup-ns": backup_ns })),
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
|
||||
record_repository(&repo);
|
||||
|
Loading…
Reference in New Issue
Block a user