diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2018-08-09 18:14:56 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-08-10 17:21:37 +0100 |
commit | 84c30742254a536f70bb4217756416bcf0e8a51b (patch) | |
tree | 0456c928e095c0cc8f93793a7027ce9b5981b7a8 | |
parent | 48a1a00685c680ba9fbd5c9b10377e8d0551a926 (diff) | |
download | sos-84c30742254a536f70bb4217756416bcf0e8a51b.tar.gz |
[policies] enable RHOSP preset by presence of rhosp-release package
Resolves: #1395
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/policies/redhat.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py index ee687d46..5bfbade2 100644 --- a/sos/policies/redhat.py +++ b/sos/policies/redhat.py @@ -315,6 +315,8 @@ No changes will be made to system configuration. # Package based checks if self.pkg_by_name("satellite-common") is not None: return self.find_preset(RH_SATELLITE) + if self.pkg_by_name("rhosp-release") is not None: + return self.find_preset(RHOSP) # Vanilla RHEL is default return self.find_preset(RHEL) |