We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a396ef6 + ae28f05 commit 3fcef67Copy full SHA for 3fcef67
1 file changed
lib/facter/resolvers/openbsd/mountpoints.rb
@@ -27,9 +27,9 @@ def read_mount(fact_name)
27
end
28
29
def add_mount_points_fact(line)
30
- elem = line.split("\s")
31
- options = elem.drop(5)
32
- options.each { |option| option.tr!('(),', '') }
+ (elem, _, options) = line.partition("\s(")
+ elem = elem.split("\s")
+ options = options.chop!.split(",\s")
33
@fact_list[:mountpoints][elem[2]] = { device: elem[0], filesystem: elem[4],
34
options: options }
35
0 commit comments