mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Updating the other function that uses cmd.run_all
This commit is contained in:
parent
e6a4619ec1
commit
74bc377eb4
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def _table_attrs(table):
|
|||
'''
|
||||
Helper function to find valid table attributes
|
||||
'''
|
||||
cmd = 'osqueryi --json "pragma table_info({0})"'.format(table)
|
||||
cmd = ['osqueryi'] + ['--json'] + ['pragma table_info{0}'.format(table)]
|
||||
res = __salt__['cmd.run_all'](cmd)
|
||||
if res['retcode'] == 0:
|
||||
attrs = []
|
||||
|
|
Loading…
Add table
Reference in a new issue