cherry-pick fix for interface flags facts

This commit is contained in:
kn
2026-05-06 21:20:34 +00:00
parent d4d3bed593
commit bbba2ad699
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@
COMMENT = system inventory tool
DISTNAME = openfact-5.6.0
REVISION = 0
CATEGORIES = sysutils
HOMEPAGE = https://github.com/OpenVoxProject/openfact/
@@ -0,0 +1,15 @@
post-5.6.0 merged "interfaces: parse flags radix correctly"
https://github.com/OpenVoxProject/openfact/pull/110
Index: lib/facter/resolvers/networking.rb
--- lib/facter/resolvers/networking.rb.orig
+++ lib/facter/resolvers/networking.rb
@@ -64,7 +64,7 @@ module Facter
end
def extract_flags(raw_data, parsed_interface_data)
- flags = raw_data.match(/flags=\d+<(.+)>/)&.captures&.first
+ flags = raw_data.match(/flags=\h+<(.+)>/)&.captures&.first
parsed_interface_data[:flags] = flags.split(',') unless flags.nil?
end