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) (#1181)

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

* Issue #1179: Add changelog fragment.

(cherry picked from commit 19fdfcf0b3)

Co-authored-by: Jeff Geerling <geerlingguy@mac.com>
This commit is contained in:
patchback[bot] 2020-10-26 19:54:18 +01:00 committed by GitHub
parent 34c164dc78
commit 6ea7616541
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'):