]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/CephFSPlugin.pm
s/ceph_version/local_ceph_version/ for clarity
[pve-storage.git] / PVE / Storage / CephFSPlugin.pm
index 4aa9e9630be1a1c42579a0f316ca7b51566dd284..6575f4f81ab28234bdecc97877f74eda9696aa93 100644 (file)
@@ -98,7 +98,10 @@ sub cephfs_mount {
     } else {
        push @opts, "name=$cmd_option->{userid}";
        push @opts, "secretfile=$secretfile" if defined($secretfile);
-       push @opts, "conf=$configfile" if defined($configfile);
+
+       # FIXME: remove version check in PVE 7.0, only needed for Luminous -> Nautilus
+       my ($subversions) = PVE::CephConfig::local_ceph_version();
+       push @opts, "conf=$configfile" if defined($configfile) && @$subversions[0] > 12;
     }
 
     push @opts, $scfg->{options} if $scfg->{options};