Skip to content

Commit ff49e50

Browse files
author
Teddy Reed
committed
Update TablePlugin to use 1.7.5 API
osquery version 1.7.5 has breaking TablePlugin API changes. The new version requires "id" and "op" within route information for table plugins.
1 parent 93196db commit ff49e50

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

osquery/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55

66
__title__ = "osquery"
7-
__version__ = "0.1.1"
7+
__version__ = "0.1.2"
88
__author__ = "osquery developers"
99
__license__ = "BSD"
1010
__copyright__ = "Copyright 2015 Facebook"

osquery/management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def parse_cli_params():
144144
help="Enable verbose informational messages")
145145
return parser.parse_args()
146146

147-
def start_extension(name="<unknown>", version="0.0.0", sdk_version="1.4.4",
148-
min_sdk_version="1.4.4"):
147+
def start_extension(name="<unknown>", version="0.0.0", sdk_version="1.7.5",
148+
min_sdk_version="1.7.5"):
149149
"""Start your extension by communicating with osquery core and starting
150150
a thrift server.
151151

osquery/table_plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ def routes(self):
6060
routes = []
6161
for column in self.columns():
6262
route = {
63+
"id": "column",
6364
"name": column.name,
6465
"type": column.type,
66+
"op": "0",
6567
}
6668
routes.append(route)
6769
return routes

0 commit comments

Comments
 (0)