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:
parent
f9f2aaaec2
commit
30b6ae310e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user