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:
parent
806e6e372c
commit
5282865bf8
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user