]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuServer.pm
fix: #1075: Restore VM template to VM and try to convert to template.
[qemu-server.git] / PVE / QemuServer.pm
index 7d2066e482977ae2aeca094033a2d8f6aac9e268..2ca5f6e9008a44fdfef82c390f5458e606da91aa 100644 (file)
@@ -5904,7 +5904,6 @@ 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
 
     my $dc = PVE::Cluster::cfs_read_file('datacenter.cfg');
     if (($line =~ m/^(vlan(\d+)):\s*(\S+)\s*$/)) {
@@ -6756,8 +6755,8 @@ sub qemu_drive_mirror {
     $opts->{format} = $format if $format;
 
     if (defined($bwlimit)) {
-       my $bwlimit_bps = $opts->{speed} = $bwlimit * 1024;
-       print "drive mirror is starting for drive-$drive with bandwidth limit: ${bwlimit}KB/s\n";
+       $opts->{speed} = $bwlimit * 1024;
+       print "drive mirror is starting for drive-$drive with bandwidth limit: ${bwlimit} KB/s\n";
     } else {
        print "drive mirror is starting for drive-$drive\n";
     }