mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove one-char variables
This commit is contained in:
parent
2c94eb016f
commit
baf35ed708
1 changed files with 5 additions and 6 deletions
|
@ -1248,12 +1248,11 @@ def search(criteria, refresh=False):
|
|||
raise CommandExecutionError('No packages found by criteria "{0}".'.format(criteria))
|
||||
|
||||
out = {}
|
||||
for solvable in [s for s in solvables
|
||||
if s.getAttribute('status') == 'not-installed' and
|
||||
s.getAttribute('kind') == 'package']:
|
||||
out[solvable.getAttribute('name')] = {
|
||||
'summary': solvable.getAttribute('summary')
|
||||
}
|
||||
for solvable in [slv for slv in solvables
|
||||
if slv.getAttribute('status') == 'not-installed'
|
||||
and slv.getAttribute('kind') == 'package']:
|
||||
out[solvable.getAttribute('name')] = {'summary': solvable.getAttribute('summary')}
|
||||
|
||||
return out
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue