Blame SOURCES/sos-RHELPLAN-118856-collect-information-about-sca.patch
|
|
969eeb |
From f688abf352eb53ab3ca1498d5428173016b17029 Mon Sep 17 00:00:00 2001
|
|
|
969eeb |
From: Barbora Vassova <bvassova@redhat.com>
|
|
|
969eeb |
Date: Thu, 11 Jan 2024 11:12:53 +0100
|
|
|
969eeb |
Subject: [PATCH] [candlepin] collect information about SCA This change should
|
|
|
969eeb |
start to collecting information about SCA enablement per organization.
|
|
|
969eeb |
|
|
|
969eeb |
Relevant: #3475
|
|
|
969eeb |
|
|
|
969eeb |
Signed-off-by: Barbora Vassova <bvassova@redhat.com>
|
|
|
969eeb |
---
|
|
|
969eeb |
sos/plugins/candlepin.py | 7 +++++++
|
|
|
969eeb |
1 file changed, 7 insertions(+)
|
|
|
969eeb |
|
|
|
969eeb |
diff --git a/sos/plugins/candlepin.py b/sos/plugins/candlepin.py
|
|
|
969eeb |
index e51c6468dd..55c275d76e 100644
|
|
|
969eeb |
--- a/sos/plugins/candlepin.py
|
|
|
969eeb |
+++ b/sos/plugins/candlepin.py
|
|
|
969eeb |
@@ -83,6 +83,13 @@ def setup(self):
|
|
|
969eeb |
self.add_cmd_output(_cmd, suggest_filename='candlepin_db_tables_sizes',
|
|
|
969eeb |
env=self.env)
|
|
|
969eeb |
|
|
|
969eeb |
+ _cmd = self.build_query_cmd("\
|
|
|
969eeb |
+ SELECT displayname, content_access_mode \
|
|
|
969eeb |
+ FROM cp_owner;")
|
|
|
969eeb |
+ self.add_cmd_output(_cmd,
|
|
|
969eeb |
+ suggest_filename='simple_content_access',
|
|
|
969eeb |
+ env=self.env)
|
|
|
969eeb |
+
|
|
|
969eeb |
def build_query_cmd(self, query, csv=False):
|
|
|
969eeb |
"""
|
|
|
969eeb |
Builds the command needed to invoke the pgsql query as the postgres
|