Skip to content

Commit 4fab106

Browse files
committed
Fixing default folder for augeas lenses
Previously the augeas lenses folder was changed by directly modifying osquery source at the build time. This should be really set by Hubble as the flag exists for it.
1 parent 3d6adfa commit 4fab106

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hubblestack/extmods/modules/nebula_osquery.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,12 @@ def _run_osqueryi_query(query, query_sql, timing, verbose):
192192
Run the osqueryi query in query_sql and return the result
193193
"""
194194
max_file_size = 104857600
195+
augeas_lenses = '/opt/osquery/lenses'
195196
query_ret = {'result': True}
196197

197198
# Run the osqueryi query
198-
cmd = [__grains__['osquerybinpath'], '--read_max', max_file_size, '--json', query_sql]
199+
cmd = [__grains__['osquerybinpath'], '--read_max', max_file_size, '--json',
200+
'--augeas_lenses', augeas_lenses, query_sql]
199201

200202
time_start = time.time()
201203
res = __salt__['cmd.run_all'](cmd, timeout=10000)

0 commit comments

Comments
 (0)