From 3f5583dae7bd1deb664dfa7ab4cf0bce700a63db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Fri, 13 Mar 2026 22:40:15 +0000 Subject: [PATCH] remove excess output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- plugins/modules/github_secrets_info.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/modules/github_secrets_info.py b/plugins/modules/github_secrets_info.py index e82af740bb..33a939beae 100644 --- a/plugins/modules/github_secrets_info.py +++ b/plugins/modules/github_secrets_info.py @@ -63,8 +63,6 @@ result: "changed": false, "failed": false, "result": { - "info": 200, - "response": "Secrets listed", "secrets": [ { "created_at": "2026-01-11T23:19:00Z", @@ -92,7 +90,7 @@ def list_secrets( headers: dict[str, str], organization: str, repository: str, -) -> dict[str, int]: +) -> dict[str, list]: url = ( f"{api_url}/repos/{organization}/{repository}/actions/secrets" if repository @@ -105,14 +103,10 @@ def list_secrets( body = resp.read() return { "secrets": json.loads(body).get("secrets", []), - "info": info["status"], - "response": "Secrets listed", } elif info["status"] == HTTPStatus.NOT_FOUND: return { "secrets": [], - "info": info["status"], - "response": "No secrets found", } else: module.fail_json(msg=f"Failed to list secrets: {info}")