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

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