[pve-devel] applied: [PATCH] Fix create replication job

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Jun 28 14:25:03 CEST 2017


applied

On Wed, Jun 28, 2017 at 01:50:29PM +0200, Wolfgang Link wrote:
> Add node to load config. this is needed if you are on an other node then the guest.
> ---
>  PVE/API2/ReplicationConfig.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/PVE/API2/ReplicationConfig.pm b/PVE/API2/ReplicationConfig.pm
> index bfaeb49f..a336c9ae 100644
> --- a/PVE/API2/ReplicationConfig.pm
> +++ b/PVE/API2/ReplicationConfig.pm
> @@ -125,7 +125,7 @@ __PACKAGE__->register_method ({
>  	    if defined($param->{target}) && !defined($nodelist->{$param->{target}});
>  
>  	my $guest_class = $PVE::API2::Replication::lookup_guest_class->($guest_info->{type});
> -	my $guest_conf = $guest_class->load_config($guest);
> +	my $guest_conf = $guest_class->load_config($guest, $guest_info->{node});
>  	my $rep_volumes = $guest_class->get_replicatable_volumes(PVE::Storage::config(), $guest, $guest_conf, 0, 0);
>  	die "No replicatable volumes found\n" if !%$rep_volumes;
>  
> -- 
> 2.11.0




More information about the pve-devel mailing list