]> git.proxmox.com Git - qemu-server.git/commitdiff
config: has_feature() take default for backup into account
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 26 Jun 2017 14:05:30 +0000 (16:05 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 14 Jul 2017 11:20:24 +0000 (13:20 +0200)
PVE/QemuConfig.pm

index 692bba88722b7cad5d3a11d5a87f38ab3b44ed5e..8e56d33ab60429840a2e58a86a70d4a7a15bcb54 100644 (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);
    });