diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2020-12-08 20:02:37 +0100 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-12-09 12:11:34 -0500 |
commit | 1c6efee74557f433dfc5b67fb8ab76b0d9e6f988 (patch) | |
tree | 4aab550fd14c9eb7978501c33a69c3675b76667c | |
parent | 03642cf2e5619f11c762b63c61c9c69fb2b00cdf (diff) | |
download | sos-1c6efee74557f433dfc5b67fb8ab76b0d9e6f988.tar.gz |
[collector] allow overriding plain --cluster-type
In few user scenarios, it is useful to force sos collect to override
cluster type, but let it generate list of nodes by itself. For that,
it is sufficient to set the self.cluster_type accordingly.
Resolves: #2331
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/collector/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/collector/__init__.py b/sos/collector/__init__.py index 1abb08ae..bd84acaf 100644 --- a/sos/collector/__init__.py +++ b/sos/collector/__init__.py @@ -764,6 +764,7 @@ class SoSCollector(SoSComponent): self.cluster = self.clusters['jbon'] else: self.cluster = self.clusters[self.opts.cluster_type] + self.cluster_type = self.opts.cluster_type self.cluster.master = self.master else: |