mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
cherry-pick fix for interface flags facts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user