mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 21:24:01 +00:00
ceph: make config parser less greedy
Options such as: osd mount options xfs = -i size=2048 -n size=16k were parsed as: key: 'osd mount options xfs = -i size=2048 -n size' value: '16k' This is due to the greedy .* in the beginning. Making it non-greedy fixes this. Fixes #851
This commit is contained in:
parent
f65c77d3ca
commit
15a5cdd1b3
@ -139,7 +139,7 @@ sub parse_ceph_config {
|
||||
next;
|
||||
}
|
||||
|
||||
if ($line =~ m/^(.*\S)\s*=\s*(\S.*)$/) {
|
||||
if ($line =~ m/^(.*?\S)\s*=\s*(\S.*)$/) {
|
||||
$cfg->{$section}->{$1} = $2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user