def kernel_modules(attrs=None, where=None):
 if (__grains__['os_family'] in ['RedHat', 'Debian']):
  return _osquery_cmd(table='kernel_modules', attrs=attrs, where=where)
 return {'result': False, 'comment': 'Only available on Red Hat or Debian based systems.'}

def kernel_modules ( attrs = None , where = None ) : if ( __grains__ [ 'os_family' ] in [ 'RedHat' , 'Debian' ] ) : return _osquery_cmd ( table = 'kernel_modules' , attrs = attrs , where = where ) return { 'result' : False , 'comment' : 'Only available on Red Hat or Debian based systems.' }
return kernel_modules information from osquery cli example: .