[pve-devel] applied: [PATCH qemu-server 2/2] Add missing die statements

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Aug 11 14:35:06 CEST 2020


On August 4, 2020 1:32 pm, Fabian Ebner wrote:
> Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
>  PVE/QemuServer.pm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index 8b0b2c8..11de6d4 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -6022,7 +6022,7 @@ sub restore_proxmox_backup_archive {
>  	}
>  
>  	my $fh = IO::File->new($cfgfn, "r") ||
> -	    "unable to read qemu-server.conf - $!\n";
> +	    die "unable to read qemu-server.conf - $!\n";
>  
>  	my $virtdev_hash = $parse_backup_hints->($rpcenv, $user, $storecfg, $fh, $devinfo, $options);
>  
> @@ -6183,7 +6183,7 @@ sub restore_vma_archive {
>  
>  	# we can read the config - that is already extracted
>  	my $fh = IO::File->new($cfgfn, "r") ||
> -	    "unable to read qemu-server.conf - $!\n";
> +	    die "unable to read qemu-server.conf - $!\n";
>  
>  	my $fwcfgfn = "$tmpdir/qemu-server.fw";
>  	if (-f $fwcfgfn) {
> -- 
> 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