From af4fae722e09bfc49aa27f07be6c6daaf3ea91d6 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Mon, 17 Jan 2022 23:59:35 +0100 Subject: [PATCH] Fix outdated package detection --- plugins/modules/packaging/language/cargo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/packaging/language/cargo.py b/plugins/modules/packaging/language/cargo.py index 0230d8ad1d..cf7586e9c1 100644 --- a/plugins/modules/packaging/language/cargo.py +++ b/plugins/modules/packaging/language/cargo.py @@ -136,7 +136,7 @@ class Cargo(object): installed_version = self.get_installed().get(name) 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) if match: