mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Enhance filter for the "technical" fields that are not generally needed as a package information for the CMDB
This commit is contained in:
parent
8d6429c746
commit
9004de4dd1
@ -364,7 +364,8 @@ def info(*packages):
|
||||
pkg[pkg_ext_k] = pkg_ext_v
|
||||
# Remove "technical" keys
|
||||
for t_key in ['installed_size', 'depends', 'recommends',
|
||||
'conflicts', 'bugs', 'description-md5']:
|
||||
'provides', 'replaces', 'conflicts', 'bugs',
|
||||
'description-md5', 'task']:
|
||||
if t_key in pkg:
|
||||
del pkg[t_key]
|
||||
ret[pkg['package']] = pkg
|
||||
|
Loading…
Reference in New Issue
Block a user