From 5282865bf861223474bcd4c45cde7b971c57d64c Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 26 Jun 2017 16:05:30 +0200 Subject: [PATCH] config: has_feature() take default for backup into account --- PVE/QemuConfig.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuConfig.pm b/PVE/QemuConfig.pm index 251fe7ec..e327482d 100644 --- a/PVE/QemuConfig.pm +++ b/PVE/QemuConfig.pm @@ -55,7 +55,7 @@ sub has_feature { my ($ds, $drive) = @_; return if PVE::QemuServer::drive_is_cdrom($drive); - return if $backup_only && !$drive->{backup}; + return if $backup_only && defined($drive->{backup}) && !$drive->{backup}; my $volid = $drive->{file}; $err = 1 if !PVE::Storage::volume_has_feature($storecfg, $feature, $volid, $snapname, $running); });