]> git.proxmox.com Git - pve-container.git/commitdiff
cleanup: move variable a bit closer to its use...
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 31 Jul 2018 12:12:47 +0000 (14:12 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 31 Jul 2018 12:12:49 +0000 (14:12 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC/Config.pm

index 486706f6b42599d034332abb61db09ecbf8252bf..f90ac3b1fb58f9c6d506128705351a8e6db6c0fe 100644 (file)
@@ -1320,11 +1320,10 @@ sub get_replicatable_volumes {
     my $test_volid = sub {
        my ($volid, $mountpoint) = @_;
 
-       my $replicate = $mountpoint->{replicate} // 1;
-
        return if !$volid;
 
        my $mptype = $mountpoint->{type};
+       my $replicate = $mountpoint->{replicate} // 1;
 
        if ($mptype ne 'volume') {
            # skip bindmounts if replicate = 0 even for cleanup,