Fix the homebrew module failing because of warnings (#8406)

Instead of checking if there is an error message, which can also be a
warning, we now check the return code.

This commit fixes #8229 #7044

Co-authored-by: Strahinja Kustudic <strahinjak@nordeus.com>
This commit is contained in:
Strahinja Kustudic 2024-05-26 21:07:09 +02:00 committed by GitHub
commit 43cb5a0d54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 16 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- homebrew - do not fail when brew prints warnings (https://github.com/ansible-collections/community.general/pull/8406, https://github.com/ansible-collections/community.general/issues/7044).