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

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