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.
This commit is contained in:
Dietmar Maurer 2013-05-08 10:19:38 +02:00
parent ccfb9ffe7e
commit ca3e4fa4e1

View File

@ -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