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

update list_outdated module split to both old and new module delimiter.

This commit is contained in:
Joe Maller 2013-11-14 10:25:23 -05:00
parent 91e5569324
commit d95ba87b62

View file

@ -163,7 +163,9 @@ class Npm(object):
data = self._exec(['outdated'], True, False)
for dep in data.splitlines():
if dep:
pkg, other = dep.split('@', 1)
# node.js v0.10.22 changed the `npm outdated` module separator
# from "@" to " ". Split on both for backwards compatibility.
pkg, other = re.split('\s|@', dep, 1)
outdated.append(pkg)
return outdated