Blame SOURCES/sos-bz1596494-cds-on-rhui3.patch

c33036
From 62f4affbc9fb6da06dd5707e9aa659d206352e87 Mon Sep 17 00:00:00 2001
c33036
From: Pavel Moravec <pmoravec@redhat.com>
c33036
Date: Tue, 3 Jul 2018 13:02:09 +0200
c33036
Subject: [PATCH] [rhui] Fix detection of CDS for RHUI3
c33036
c33036
Detection of CDS node on RHUI 3 cant rely on deprecated pulp-cds package
c33036
but rather on rhui-mirrorlist one.
c33036
c33036
Resolves: #1375
c33036
c33036
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
c33036
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
c33036
---
c33036
 sos/plugins/rhui.py | 6 +++++-
c33036
 1 file changed, 5 insertions(+), 1 deletion(-)
c33036
c33036
diff --git a/sos/plugins/rhui.py b/sos/plugins/rhui.py
c33036
index 2b1e2baa7..459a89831 100644
c33036
--- a/sos/plugins/rhui.py
c33036
+++ b/sos/plugins/rhui.py
c33036
@@ -22,7 +22,11 @@ class Rhui(Plugin, RedHatPlugin):
c33036
     files = [rhui_debug_path]
c33036
 
c33036
     def setup(self):
c33036
-        if self.is_installed("pulp-cds"):
c33036
+        cds_installed = [
c33036
+            self.is_installed("pulp-cds"),
c33036
+            self.is_installed("rhui-mirrorlist")
c33036
+        ]
c33036
+        if any(cds_installed):
c33036
             cds = "--cds"
c33036
         else:
c33036
             cds = ""