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

outdated needed to see set changed

This commit is contained in:
Joey Baker 2014-02-07 15:50:17 -08:00
parent 242bfd8c68
commit 5655ffa8bf

View file

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