aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2020-05-22 08:20:11 +0200
committerJake Hunsaker <jhunsake@redhat.com>2020-05-26 09:42:46 -0400
commit569f261801d3a4da2852c0b40be78b701056edaa (patch)
tree53ccb33d83621a39caa99954c35ee78ebd9b47a2
parentc2d4c7d1f3ecf6ac59c665cb5138cb2ddda71b3d (diff)
downloadsos-569f261801d3a4da2852c0b40be78b701056edaa.tar.gz
[containers_common] Call machinectl on foreground
Commands like: machinectl -q shell user1@ .. hang if not called on foreground / with terminal. Resolves: #2082 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/containers_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/report/plugins/containers_common.py b/sos/report/plugins/containers_common.py
index da360c7e..92c2e9e8 100644
--- a/sos/report/plugins/containers_common.py
+++ b/sos/report/plugins/containers_common.py
@@ -51,6 +51,6 @@ class ContainersCommon(Plugin, RedHatPlugin, UbuntuPlugin):
for cmd in user_subcmds:
self.add_cmd_output([
'machinectl -q shell %s@ %s %s' % (user, binary, cmd)
- ])
+ ], foreground=True)
# vim: set et ts=4 sw=4 :