Blame SOURCES/sos-bz1895316-collector--cluster-type.patch

bffc8a
From 1c6efee74557f433dfc5b67fb8ab76b0d9e6f988 Mon Sep 17 00:00:00 2001
bffc8a
From: Pavel Moravec <pmoravec@redhat.com>
bffc8a
Date: Tue, 8 Dec 2020 20:02:37 +0100
bffc8a
Subject: [PATCH] [collector] allow overriding plain --cluster-type
bffc8a
bffc8a
In few user scenarios, it is useful to force sos collect to override
bffc8a
cluster type, but let it generate list of nodes by itself. For that,
bffc8a
it is sufficient to set the self.cluster_type accordingly.
bffc8a
bffc8a
Resolves: #2331
bffc8a
bffc8a
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
bffc8a
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
bffc8a
---
bffc8a
 sos/collector/__init__.py | 1 +
bffc8a
 1 file changed, 1 insertion(+)
bffc8a
bffc8a
diff --git a/sos/collector/__init__.py b/sos/collector/__init__.py
bffc8a
index 1abb08ae..bd84acaf 100644
bffc8a
--- a/sos/collector/__init__.py
bffc8a
+++ b/sos/collector/__init__.py
bffc8a
@@ -764,6 +764,7 @@ class SoSCollector(SoSComponent):
bffc8a
                 self.cluster = self.clusters['jbon']
bffc8a
             else:
bffc8a
                 self.cluster = self.clusters[self.opts.cluster_type]
bffc8a
+                self.cluster_type = self.opts.cluster_type
bffc8a
             self.cluster.master = self.master
bffc8a
 
bffc8a
         else:
bffc8a
-- 
bffc8a
2.26.2
bffc8a