1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Issue #1179: Fix v2 composer require idempotence (#1180)

* Issue #1179: Add new statement to composer require changed check for v2.

* Issue #1179: Add changelog fragment.
This commit is contained in:
Jeff Geerling 2020-10-26 13:31:17 -05:00 committed by GitHub
parent 167153bff5
commit 19fdfcf0b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,4 @@
---
bugfixes:
- composer - fix bug in command idempotence with composer v2
(https://github.com/ansible-collections/community.general/issues/1179).

View file

@ -145,7 +145,11 @@ def parse_out(string):
def has_changed(string):
return "Nothing to install or update" not in string
for no_change in ["Nothing to install or update", "Nothing to install, update or remove"]:
if no_change in string:
return False
return True
def get_available_options(module, command='install'):