diff options
author | Jan Jansky <jjansky@redhat.com> | 2022-04-05 16:26:13 +0200 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2022-04-05 11:41:48 -0400 |
commit | b83bb70e181c9d1279bacf6f296cd00bea9b60ae (patch) | |
tree | 7ff8e1e1d32d4b038d71d16b58f662f728b2e10a | |
parent | 61765992812afb785e9552e01e3b5579118a6963 (diff) | |
download | sos-b83bb70e181c9d1279bacf6f296cd00bea9b60ae.tar.gz |
[candlepin] collect information about SCA
This change should start to collecting information about
SCA enablement per organization.
Resolves: #2901
Related: RHBZ2060925
Signed-off-by: Jan Jansky <jjansky@redhat.com>
-rw-r--r-- | sos/report/plugins/candlepin.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/report/plugins/candlepin.py b/sos/report/plugins/candlepin.py index 664df17d..d98f275c 100644 --- a/sos/report/plugins/candlepin.py +++ b/sos/report/plugins/candlepin.py @@ -99,6 +99,13 @@ class Candlepin(Plugin, RedHatPlugin): 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 |