[pve-devel] [PATCH common 2/2] log actual error when remote migration ip fails

Dietmar Maurer dietmar at proxmox.com
Wed Nov 9 12:53:42 CET 2016


And output to STDERR trigger a 'die' - what for ?

> diff --git a/src/PVE/AbstractMigrate.pm b/src/PVE/AbstractMigrate.pm
> index 140b479..8dd1d04 100644
> --- a/src/PVE/AbstractMigrate.pm
> +++ b/src/PVE/AbstractMigrate.pm
> @@ -98,6 +98,11 @@ sub get_remote_migration_ip {
>  	if ($line =~ m/^ip: '($PVE::Tools::IPRE)'$/) {
>  	   $ip = $1;
>  	}
> +    },
> +    errfunc => sub {
> +	my $line = shift;
> +	$self->log('err', $line);
> +	die "$line\n";
>      });
>  
>      return $ip;
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list