From 5009a8c755fb52d6e9a85bc10996c1c2bfeda950 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 13 Jun 2017 11:56:26 +0200 Subject: [PATCH] PVE/QemuMigrate.pm: fix syntax errors --- PVE/QemuMigrate.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index 7c4dd90a..bf0bb44c 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -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};