mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix wrong queryformat for zypper list_provides
This commit is contained in:
parent
d40c034ce1
commit
bb9cb6e482
1 changed files with 1 additions and 1 deletions
|
@ -2266,7 +2266,7 @@ def list_provides(**kwargs):
|
|||
'''
|
||||
ret = __context__.get('pkg.list_provides')
|
||||
if not ret:
|
||||
cmd = ['rpm', '-qa', '--queryformat', '[%{PROVIDES}_|-%{NAME}\n]']
|
||||
cmd = ['rpm', '-qa', '--queryformat', '%{PROVIDES}_|-%{NAME}\n']
|
||||
ret = dict()
|
||||
for line in __salt__['cmd.run'](cmd, output_loglevel='trace', python_shell=False).splitlines():
|
||||
provide, realname = line.split('_|-')
|
||||
|
|
Loading…
Add table
Reference in a new issue