[pve-devel] [PATCH V3 pve-manager] fix #146 add name to backup log.
Wolfgang Link
w.link at proxmox.com
Wed Jun 15 09:27:23 CEST 2016
---
PVE/VZDump.pm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index 1e00c2d..ea6577d 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -853,6 +853,16 @@ sub exec_backup_task {
# lock VM (prevent config changes)
$plugin->lock_vm ($vmid);
+ if ($vmtype eq 'qemu') {
+ my $conf = PVE::QemuConfig->load_config($vmid);
+ debugmsg ('info', "VM Name: $conf->{name}", $logfd, 1)
+ if defined($conf->{name});
+ } elsif ($vmtype eq 'lxc') {
+ my $conf = PVE::LXC::Config->load_config($vmid);
+ debugmsg ('info', "CT Hostname: $conf->{hostname}", $logfd, 1)
+ if defined($conf->{hostname});
+ }
+
$cleanup->{unlock} = 1;
# prepare
--
2.1.4
More information about the pve-devel
mailing list