mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00: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:
@@ -143,6 +143,8 @@ class Npm(object):
|
|||||||
for dep in data['dependencies']:
|
for dep in data['dependencies']:
|
||||||
if 'missing' in data['dependencies'][dep] and data['dependencies'][dep]['missing']:
|
if 'missing' in data['dependencies'][dep] and data['dependencies'][dep]['missing']:
|
||||||
missing.append(dep)
|
missing.append(dep)
|
||||||
|
elif 'invalid' in data['dependencies'][dep] and data['dependencies'][dep]['invalid']:
|
||||||
|
missing.append(dep)
|
||||||
else:
|
else:
|
||||||
installed.append(dep)
|
installed.append(dep)
|
||||||
#Named dependency not installed
|
#Named dependency not installed
|
||||||
|
|||||||
Reference in New Issue
Block a user