outdated needed to see set `changed`

pull/5909/head
Joey Baker 11 years ago
parent 242bfd8c68
commit 5655ffa8bf

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

Loading…
Cancel
Save