mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-22 22:03:55 +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) = @_;
|
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…
x
Reference in New Issue
Block a user