[pve-devel] [PATCH qemu-server] config: has_feature() take default for backup into account

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Jun 26 16:05:30 CEST 2017


---
 PVE/QemuConfig.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuConfig.pm b/PVE/QemuConfig.pm
index 251fe7e..e327482 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);
    });
-- 
2.11.0





More information about the pve-devel mailing list