mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
skip lines without colon
This commit is contained in:
parent
295f002fc3
commit
dd2d7954a1
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue