[pve-devel] applied: [PATCH manager 1/6] Set source when creating a new replication job
Fabian Grünbichler
f.gruenbichler at proxmox.com
Tue Aug 11 14:31:58 CEST 2020
and sent some additional checks/refactors as follow-up series
On August 10, 2020 2:35 pm, Fabian Ebner wrote:
> 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 at proxmox.com>
> ---
> PVE/API2/ReplicationConfig.pm | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/PVE/API2/ReplicationConfig.pm b/PVE/API2/ReplicationConfig.pm
> index 2b4ecd10..b85e5804 100644
> --- a/PVE/API2/ReplicationConfig.pm
> +++ b/PVE/API2/ReplicationConfig.pm
> @@ -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;
>
> --
> 2.20.1
>
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
>
>
More information about the pve-devel
mailing list