aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-04-15 11:50:55 +0200
committerBryn M. Reeves <bmr@redhat.com>2019-05-14 11:28:39 +0100
commit0100bd129e8fc809cc5b0258f6c0c7c64ad084ab (patch)
treee8a226f5d8135efdd63e13e675bbd7c1d7bda2aa
parent5847189f85d1b63afa8c1d8803779348eaa7dc68 (diff)
downloadsos-0100bd129e8fc809cc5b0258f6c0c7c64ad084ab.tar.gz
[buildah] parse container list properly even for scratch ones
Scratch containers dont have id, therefore we shall get container name as the latest string on each line instead of 5th. Resolves: #1647 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/buildah.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/buildah.py b/sos/plugins/buildah.py
index c6c57553..fd8653eb 100644
--- a/sos/plugins/buildah.py
+++ b/sos/plugins/buildah.py
@@ -47,7 +47,7 @@ class Buildah(Plugin, RedHatPlugin):
if containahs['is_wicked_pissah']:
for containah in containahs['auutput'].splitlines():
# obligatory Tom Brady
- goat = containah.split()[4]
+ goat = containah.split()[-1]
self.add_cmd_output('buildah inspect -t container %s' % goat)
pitchez = make_chowdah('buildah images -n')