Updating the other function that uses cmd.run_all

This commit is contained in:
Gareth J. Greenaway 2017-08-16 09:13:39 -07:00
parent e6a4619ec1
commit 74bc377eb4

View file

@ -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 = []