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