mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* 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:
parent
34c164dc78
commit
6ea7616541
2 changed files with 9 additions and 1 deletions
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
bugfixes:
|
||||
- composer - fix bug in command idempotence with composer v2
|
||||
(https://github.com/ansible-collections/community.general/issues/1179).
|
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue