Commit
The latter is a deprecated compat symlink. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979264 Signed-off-by: Michael Biebl <biebl@debian.org>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,11 +47,13 @@ def setup(self): | |
"timedatectl" | ||
This comment has been minimized.
Sorry, something went wrong. |
||
]) | ||
|
||
# systemd-resolve command starts systemd-resolved service if that | ||
# resolvectl command starts systemd-resolved service if that | ||
# is not running, so gate the commands by this predicate | ||
resolvectl = 'resolvectl' if self.is_executable('resolvectl') \ | ||
This comment has been minimized.
Sorry, something went wrong.
slashdd
|
||
else 'systemd-resolve' | ||
self.add_cmd_output([ | ||
"systemd-resolve --status", | ||
"systemd-resolve --statistics", | ||
"%s status" % resolvectl, | ||
"%s statistics" % resolvectl, | ||
This comment has been minimized.
Sorry, something went wrong.
slashdd
|
||
], pred=SoSPredicate(self, services=["systemd-resolved"])) | ||
|
||
self.add_cmd_output("systemd-analyze plot", | ||
|
1 comment
on commit 818eaf8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really familiar with either Python or sosreport, so I'll guess I'll leave the more elaborate fix up to someone else.
Missing
from sos.utilities import is_executable