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

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