mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-29 15:37:40 +00:00
sync: fix recursive remote sync
the snapshot pulling code always selected the "top" namespace of the source, instead of the passed in namespace parameter. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Reviewed-by: Dominik Csapak <d.csapak@proxmox.com> Tested-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
1181bd5de8
commit
b14e5dcb59
@ -187,7 +187,7 @@ impl PullSource for RemoteSource {
|
|||||||
|
|
||||||
async fn list_backup_dirs(
|
async fn list_backup_dirs(
|
||||||
&self,
|
&self,
|
||||||
_namespace: &BackupNamespace,
|
namespace: &BackupNamespace,
|
||||||
group: &BackupGroup,
|
group: &BackupGroup,
|
||||||
worker: &WorkerTask,
|
worker: &WorkerTask,
|
||||||
) -> Result<Vec<BackupDir>, Error> {
|
) -> Result<Vec<BackupDir>, Error> {
|
||||||
@ -198,8 +198,8 @@ impl PullSource for RemoteSource {
|
|||||||
"backup-id": group.id,
|
"backup-id": group.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
if !self.ns.is_root() {
|
if !namespace.is_root() {
|
||||||
args["ns"] = serde_json::to_value(&self.ns)?;
|
args["ns"] = serde_json::to_value(&namespace)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.client.login().await?;
|
self.client.login().await?;
|
||||||
|
Loading…
Reference in New Issue
Block a user