From ca3e4fa4e1cfaf8f9882f54b26c534a3082fc2f0 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 8 May 2013 10:19:38 +0200 Subject: [PATCH] restore: do not restore template flag A restored VM is never a template. Else we would need to create base images after the restore, and not all storages supports base images. Anyways, the user can easily convert the restored VM into a template later. --- PVE/QemuServer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 5705379f..b020b535 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3572,6 +3572,7 @@ sub restore_update_config_line { return if $line =~ m/^lock:/; return if $line =~ m/^unused\d+:/; return if $line =~ m/^parent:/; + return if $line =~ m/^template:/; # restored VM is never a template if (($line =~ m/^(vlan(\d+)):\s*(\S+)\s*$/)) { # try to convert old 1.X settings