From 3ee1e868f5bd66c9955d4431f15a169880c0a058 Mon Sep 17 00:00:00 2001 From: Wesley Hershberger Date: Wed, 26 Feb 2025 11:47:22 -0600 Subject: [PATCH] [networking] List contents of netplan configuration dirs If a user uses `.yml` for a netplan configuration file, netplan silently ignores it. This at least gives us better visibility without needing to worry about obfuscating the contents of other (possibly malformatted) files. Signed-off-by: Wesley Hershberger --- sos/report/plugins/networking.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py index e4375c635..d36a53f94 100644 --- a/sos/report/plugins/networking.py +++ b/sos/report/plugins/networking.py @@ -349,6 +349,14 @@ def setup(self): "/run/systemd/network" ]) + # Netplan only consumes files with the `.yaml` extension (LP#1815734), + # so give visibility on other files that might be present. + self.add_dir_listing([ + "/etc/netplan", + "/lib/netplan", + "/run/netplan", + ]) + def postproc(self): self.do_path_regex_sub(