#NEWLINE# def _table_attrs( table ) : #NEWLINE# #INDENT# '\n    Helper function to find valid table attributes\n    ' #NEWLINE# cmd = 'osqueryi --json "pragma table_info({0})"' . format ( table ) #NEWLINE# res = __salt__ [ 'cmd.run_all' ] ( cmd ) #NEWLINE# if ( res [ 'retcode' ] == 0 ) : #NEWLINE# #INDENT# attrs = [ ] #NEWLINE# text = json . loads ( res [ 'stdout' ] ) #NEWLINE# for item in text : #NEWLINE# #INDENT# attrs . append ( item [ 'name' ] ) #NEWLINE# #UNINDENT# return attrs #NEWLINE# #UNINDENT# return False