]> git.proxmox.com Git - pve-container.git/commitdiff
migration: fix snapshots boolean accounting
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 22 Jun 2021 12:18:25 +0000 (14:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Jun 2021 19:51:19 +0000 (21:51 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC/Migrate.pm

index 3cd895da50bdee46d56eb50413f4855976e8a8c9..ce1f7dd7e122c736d1259150e41aad42ba22dec9 100644 (file)
@@ -146,7 +146,7 @@ sub phase1 {
        }
 
        $volhash->{$volid}->{ref} = defined($snapname) ? 'snapshot' : 'config';
-       $volhash->{$volid}->{snapshots} = defined($snapname);
+       $volhash->{$volid}->{snapshots} = 1 if defined($snapname);
 
        my ($path, $owner) = PVE::Storage::path($self->{storecfg}, $volid);