Skip to content

Commit 586c79f

Browse files
authored
Fix for double-JSON-encoding of table generation contexts (osquery#77) (osquery#78)
1 parent ca8fa1b commit 586c79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osquery/table_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def call(self, context):
3939
if context["action"] == "generate":
4040
ctx = {}
4141
if "context" in context:
42-
ctx = json.dumps(context["context"])
42+
ctx = json.loads(context["context"])
4343
rows = self.generate(ctx)
4444
for i, row in enumerate(rows):
4545
for key, value in row.items():

0 commit comments

Comments
 (0)