mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix problem with return on installed packages
This commit is contained in:
parent
f5bd004ab0
commit
53f6a28297
1 changed files with 1 additions and 1 deletions
|
@ -807,7 +807,7 @@ def version(name, check_remote=False, source=None, pre_versions=False):
|
|||
|
||||
ver_re = re.compile(r'(\S+)\s+(.+)')
|
||||
for line in res:
|
||||
if 'packages found' not in line:
|
||||
if 'packages found' not in line and 'packages installed' not in line:
|
||||
for name, ver in ver_re.findall(line):
|
||||
ret[name] = ver
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue