]> git.proxmox.com Git - pve-storage.git/commitdiff
followup: only parse version if required, fix whitespace error
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 25 Apr 2020 09:18:03 +0000 (11:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 25 Apr 2020 09:18:03 +0000 (11:18 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/CephFSPlugin.pm

index 54689aeecb21000e730a1d08b1ea1b93723247e0..3f44cfe82d49a3af47b6b742527aa6434c379da3 100644 (file)
@@ -80,7 +80,6 @@ EOF
 sub cephfs_mount {
     my ($scfg, $storeid) = @_;
 
-    my ($subversions) = PVE::CephConfig::ceph_version();
     my $mountpoint = $scfg->{path};
     my $subdir = $scfg->{subdir} // '/';
 
@@ -99,9 +98,9 @@ sub cephfs_mount {
     } else {
        push @opts, "name=$cmd_option->{userid}";
        push @opts, "secretfile=$secretfile" if defined($secretfile);
-       
-       # FIXME: remove subversion check in PVE 7.0, not needed for >= Nautilus
-       # Luminous doesn't know the conf option
+
+       # FIXME: remove version check in PVE 7.0, only needed for Luminous -> Nautilus
+       my ($subversions) = PVE::CephConfig::ceph_version();
        push @opts, "conf=$configfile" if defined($configfile) && @$subversions[0] > 12;
     }