From db7c26e55e800d5367d8c8bd2c571b324a371133 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 12 Sep 2012 10:17:41 +0200 Subject: [PATCH] snapshot: don't overwrite main VM description --- PVE/QemuServer.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 7a6e4101..8f536e3d 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3585,6 +3585,7 @@ my $snapshot_copy_config = sub { next if $k eq 'snaptime'; next if $k eq 'lock'; next if $k eq 'digest'; + next if $k eq 'description'; next if $k =~ m/^unused\d+$/; $dest->{$k} = $source->{$k}; @@ -3599,9 +3600,9 @@ my $snapshot_apply_config = sub { snapshots => $conf->{snapshots}, }; - # keep list of unused disks + # keep description and list of unused disks foreach my $k (keys %$conf) { - next if $k !~ m/^unused\d+$/; + next if !($k =~ m/^unused\d+$/ || $k eq 'description'); $newconf->{$k} = $conf->{$k}; }