mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
composer: simplify has_changed()
This commit is contained in:
parent
42a28d92e2
commit
61fcbe0d51
1 changed files with 1 additions and 4 deletions
|
@ -109,10 +109,7 @@ def parse_out(string):
|
|||
return re.sub("\s+", " ", string).strip()
|
||||
|
||||
def has_changed(string):
|
||||
if "Nothing to install or update" in string:
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
return "Nothing to install or update" not in string
|
||||
|
||||
def composer_install(module, command, options):
|
||||
php_path = module.get_bin_path("php", True, ["/usr/local/bin"])
|
||||
|
|
Loading…
Reference in a new issue