1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-21 20:59:10 +00:00

Update plugins/modules/github_secrets_info.py

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Thomas Sjögren 2026-03-15 16:57:20 +01:00 committed by GitHub
parent a4753f4539
commit 8252c04019
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,9 +98,7 @@ def list_secrets(
if info["status"] == HTTPStatus.OK:
body = resp.read()
return {
"secrets": json.loads(body).get("secrets", []),
}
return json.loads(body).get("secrets", [])
elif info["status"] == HTTPStatus.NOT_FOUND:
return {
"secrets": [],