[pve-devel] [PATCH] fix #146 add name and vm notes to backup log.

Dietmar Maurer dietmar at proxmox.com
Tue Jun 14 12:36:09 CEST 2016



> On June 14, 2016 at 8:14 AM Wolfgang Link <w.link at proxmox.com> wrote:
> 
> 
> ---
>  PVE/VZDump.pm | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
> index 1e00c2d..0280568 100644
> --- a/PVE/VZDump.pm
> +++ b/PVE/VZDump.pm
> @@ -853,6 +853,17 @@ sub exec_backup_task {
>  	# lock VM (prevent config changes)
>  	$plugin->lock_vm ($vmid);
>  
> +	my $conf = PVE::QemuConfig->load_config($vmid);
> +
> +	debugmsg ('info',  "VM Name: $conf->{name}", $logfd, 1);

What if $conf->{name} is not defined?

> +	if ($conf->{description}) {

I do not really what to include the description - what for?




More information about the pve-devel mailing list