Blame SOURCES/sos-bz1687954-buildah-index-out-of-range.patch

5baea9
From 0100bd129e8fc809cc5b0258f6c0c7c64ad084ab Mon Sep 17 00:00:00 2001
5baea9
From: Pavel Moravec <pmoravec@redhat.com>
5baea9
Date: Mon, 15 Apr 2019 11:50:55 +0200
5baea9
Subject: [PATCH] [buildah] parse container list properly even for scratch ones
5baea9
5baea9
Scratch containers dont have id, therefore we shall get container name
5baea9
as the latest string on each line instead of 5th.
5baea9
5baea9
Resolves: #1647
5baea9
5baea9
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
5baea9
---
5baea9
 sos/plugins/buildah.py | 2 +-
5baea9
 1 file changed, 1 insertion(+), 1 deletion(-)
5baea9
5baea9
diff --git a/sos/plugins/buildah.py b/sos/plugins/buildah.py
5baea9
index c6c57553..fd8653eb 100644
5baea9
--- a/sos/plugins/buildah.py
5baea9
+++ b/sos/plugins/buildah.py
5baea9
@@ -47,7 +47,7 @@ class Buildah(Plugin, RedHatPlugin):
5baea9
         if containahs['is_wicked_pissah']:
5baea9
             for containah in containahs['auutput'].splitlines():
5baea9
                 # obligatory Tom Brady
5baea9
-                goat = containah.split()[4]
5baea9
+                goat = containah.split()[-1]
5baea9
                 self.add_cmd_output('buildah inspect -t container %s' % goat)
5baea9
 
5baea9
         pitchez = make_chowdah('buildah images -n')
5baea9
-- 
5baea9
2.17.2
5baea9