Set source when creating a new replication job

If source is missing, pvesr will set it via job_status
on the next run. But the info is already present here,
so it doesn't hurt to use it.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2020-08-10 14:35:52 +02:00 committed by Fabian Grünbichler
parent f9f2aaaec2
commit 30b6ae310e

View File

@ -138,6 +138,7 @@ __PACKAGE__->register_method ({
my $opts = $plugin->check_config($id, $param, 1, 1);
$opts->{guest} = $guest;
$opts->{source} //= $vmlist->{ids}->{$guest}->{node};
$cfg->{ids}->{$id} = $opts;