]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/CephConfig.pm
Add prune_backups to storage API
[pve-storage.git] / PVE / CephConfig.pm
index 0a75337bfdb2632030f8f4cea40deac18f2d561d..078477e49b4d30018bd169fa94e5b640240cc47a 100644 (file)
@@ -258,7 +258,7 @@ sub ceph_remove_keyfile {
 my $ceph_version_parser = sub {
     my $ceph_version = shift;
     # FIXME this is the same as pve-manager PVE::Ceph::Tools get_local_version
-    if ($ceph_version =~ /^ceph.*\s(\d+(?:\.\d+)+(?:-pve\d+)?)\s+(?:\(([a-zA-Z0-9]+)\))?/) {
+    if ($ceph_version =~ /^ceph.*\sv?(\d+(?:\.\d+)+(?:-pve\d+)?)\s+(?:\(([a-zA-Z0-9]+)\))?/) {
        my ($version, $buildcommit) = ($1, $2);
        my $subversions = [ split(/\.|-/, $version) ];