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

Fixes #1375, will check for new and outdated packages when running. (#3020)

This commit is contained in:
shane-walker 2016-09-24 01:31:40 -05:00 committed by Matt Clay
parent eedca027ee
commit f108f8ef72

View file

@ -252,7 +252,10 @@ def main():
elif state == 'latest':
installed, missing = npm.list()
outdated = npm.list_outdated()
if len(missing) or len(outdated):
if len(missing):
changed = True
npm.install()
if len(outdated):
changed = True
npm.update()
else: #absent