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

Fix outdated package detection

This commit is contained in:
jack1142 2022-01-17 23:59:35 +01:00
parent 8c92bcc10e
commit af4fae722e
No known key found for this signature in database
GPG key ID: 95A9D6BCDE5C1283

View file

@ -136,7 +136,7 @@ class Cargo(object):
installed_version = self.get_installed().get(name) installed_version = self.get_installed().get(name)
cmd = ["search", name, "--limit", "1"] cmd = ["search", name, "--limit", "1"]
data = self._exec(cmd, True, False, False) data, dummy = self._exec(cmd, True, False, False)
match = re.search(r'"(.+)"', data) match = re.search(r'"(.+)"', data)
if match: if match: