mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use renamed variable (filter_attrs to attr)
This commit is contained in:
parent
b68e1228e9
commit
6710e4900d
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ def info(*packages, **attr):
|
|||
continue
|
||||
if key not in ['description', 'name'] and value:
|
||||
pkg_data[key] = value
|
||||
if filter_attrs and 'description' in filter_attrs or not filter_attrs:
|
||||
if attr and 'description' in attr or not attr:
|
||||
pkg_data['description'] = os.linesep.join(descr)
|
||||
if pkg_name:
|
||||
ret[pkg_name] = pkg_data
|
||||
|
|
Loading…
Add table
Reference in a new issue