mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-05 17:10:58 +00:00
config: has_feature() take default for backup into account
This commit is contained in:
parent
bffd56d372
commit
cdad9f1500
@ -55,7 +55,7 @@ sub has_feature {
|
|||||||
my ($ds, $drive) = @_;
|
my ($ds, $drive) = @_;
|
||||||
|
|
||||||
return if PVE::QemuServer::drive_is_cdrom($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};
|
my $volid = $drive->{file};
|
||||||
$err = 1 if !PVE::Storage::volume_has_feature($storecfg, $feature, $volid, $snapname, $running);
|
$err = 1 if !PVE::Storage::volume_has_feature($storecfg, $feature, $volid, $snapname, $running);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user