]> git.proxmox.com Git - qemu-server.git/commitdiff
PVE/QemuMigrate.pm: fix syntax errors
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jun 2017 09:56:26 +0000 (11:56 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 13 Jun 2017 09:56:26 +0000 (11:56 +0200)
PVE/QemuMigrate.pm

index 7c4dd90a782b4c2317a34bd784edb5250ef33495..bf0bb44cb64a01ce279fcdd68e7bbcbb28b85a72 100644 (file)
@@ -281,9 +281,9 @@ sub sync_disks {
            if ($attr->{cdrom}) {
                if ($volid eq 'cdrom') {
                    my $msg = "can't migrate local cdrom drive";
-                   if (defined($snaprefs) && !$attr->{referenced_in_config))
+                   if (defined($snaprefs) && !$attr->{referenced_in_config}) {
                        my $snapnames = join(', ', sort keys %$snaprefs);
-                       $msg .= " (referenced in snapshot - $snapnames)"
+                       $msg .= " (referenced in snapshot - $snapnames)";
                    }
                    &$log_error("$msg\n");
                    return;
@@ -302,7 +302,7 @@ sub sync_disks {
 
            $sharedvm = 0;
 
-           $local_volumes->{$volid} = $attr->{referenced_in_config) ? 'config' : 'snapshot';
+           $local_volumes->{$volid} = $attr->{referenced_in_config} ? 'config' : 'snapshot';
 
            die "local cdrom image\n" if $attr->{cdrom};