diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2019-09-24 16:48:02 -0400 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-10-08 15:33:25 +0100 |
commit | 1d787e0074501b3a57e61ce6376e4f4ce69a777f (patch) | |
tree | 3e754c27920e6182237bc32acc6668eaa2d12f4d | |
parent | 5386556f868ccc38b7731c79589a743ea6df5bb4 (diff) | |
download | sos-1d787e0074501b3a57e61ce6376e4f4ce69a777f.tar.gz |
[redhat] Enable RHV preset on managers and hypervisors
The RHV preset was previously not being automatically enabled on manager
or hypervisor systems.
This adds a check for the appropriate packages and enables the preset if
either are present.
Resolves: #1798
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/policies/redhat.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py index 7ff89b1c..0fc99104 100644 --- a/sos/policies/redhat.py +++ b/sos/policies/redhat.py @@ -307,6 +307,9 @@ support representative. return self.find_preset(RHOSP) if self.pkg_by_name("cfme") is not None: return self.find_preset(RH_CFME) + if self.pkg_by_name("ovirt-engine") is not None or \ + self.pkg_by_name("vdsm") is not None: + return self.find_preset(RHV) # Vanilla RHEL is default return self.find_preset(RHEL) |