hercules-team / augeas

A configuration editing tool and API
http://augeas.net/
GNU Lesser General Public License v2.1
486 stars 199 forks source link

[multipath.aug] Unable to parse `enable_foreign "^$"` line #808

Open martinhoyer opened 1 year ago

martinhoyer commented 1 year ago

With certain device-mapper-multipath versions, like those in el8, the /usr/sbin/mpathconf --enable command generates the following defaults section in /etc/multipath.conf:

defaults { user_friendly_names yes find_multipaths yes enable_foreign "^$" }

Running commands like augtool -s set "/files/etc/multipath.conf/blacklist/wwid" ".*" will fail due to the "^$" being present in multipath.conf