5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-06 13:17:56 +03:00

config: has_feature() take default for backup into account

This commit is contained in:
Wolfgang Bumiller 2017-06-26 16:05:30 +02:00 committed by Dietmar Maurer
parent 806e6e372c
commit 5282865bf8

View File

@ -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);
});