From ecd65c4558984fefaaa7fe76b8c10237649a7904 Mon Sep 17 00:00:00 2001 From: Lucas Benedito Date: Tue, 27 May 2025 10:39:07 +0100 Subject: [PATCH] [aap_containerized] Add container command Add commands to list_instance and check_licenses. Signed-off-by: Lucas Benedito --- sos/report/plugins/aap_containerized.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sos/report/plugins/aap_containerized.py b/sos/report/plugins/aap_containerized.py index c33b20912d..27b0aa28b5 100644 --- a/sos/report/plugins/aap_containerized.py +++ b/sos/report/plugins/aap_containerized.py @@ -107,6 +107,19 @@ def setup(self): subdir="aap_containers_log" ) + if "automation-controller-task" in aap_containers: + container = "automation-controller-task" + podman_commands = [ + (f"su - {username} -c 'podman exec -it {container} bash -c" + " \"awx-manage check_license --data\"'", + "awx-manage_check_license_--data"), + (f"su - {username} -c 'podman exec -it {container} bash -c" + " \"awx-manage list_instances\"'", + "awx-manage_list_instances"), + ] + for command, filename in podman_commands: + self.add_cmd_output(command, suggest_filename=filename) + # Function to fetch podman container names def _get_aap_container_names(self, username): try: