From dd2d7954a14bd7f988c8f2766149f36d3a8c6ec3 Mon Sep 17 00:00:00 2001 From: Michael Calmer Date: Sun, 26 Feb 2023 14:40:15 +0100 Subject: [PATCH] skip lines without colon --- salt/modules/zypperpkg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/modules/zypperpkg.py b/salt/modules/zypperpkg.py index 4b73561c82b..6896cd9eb4f 100644 --- a/salt/modules/zypperpkg.py +++ b/salt/modules/zypperpkg.py @@ -2570,6 +2570,8 @@ def _find_ptf_packages(pkgs, root=None): for line in output.splitlines(): if not line.strip(): continue + if ":" not in line: + continue pkg, provides = line.split(":", 1) if "ptf()" in provides: ptfs.append(pkg)