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

Merge pull request #6355 from hkariti/npm_install_invalid

Add a package to missing list if npm list reported it as invalid
This commit is contained in:
Michael DeHaan 2014-03-16 12:41:03 -05:00
commit eaef86d22b

View file

@ -143,6 +143,8 @@ class Npm(object):
for dep in data['dependencies']:
if 'missing' in data['dependencies'][dep] and data['dependencies'][dep]['missing']:
missing.append(dep)
elif 'invalid' in data['dependencies'][dep] and data['dependencies'][dep]['invalid']:
missing.append(dep)
else:
installed.append(dep)
#Named dependency not installed