diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py index 74626af489..79b3984502 100644 --- a/sos/report/plugins/networking.py +++ b/sos/report/plugins/networking.py @@ -299,5 +299,13 @@ def setup(self): self.add_cmd_output("/usr/sbin/traceroute -n %s" % self.trace_host, priority=100) + def postproc(self): + + self.do_path_regex_sub( + "/etc/netplan", + r"(\s+password:).*", + r"\1 ******" + ) + # vim: set et ts=4 sw=4 :