From 6c674dc8bd7c5e8e106a8ea54cbf823b8d297edf Mon Sep 17 00:00:00 2001 From: Nicko van Someren Date: Fri, 5 Feb 2021 13:43:41 -0700 Subject: [PATCH] Fix for double-JSON-encoding of table generation contexts (#77) --- osquery/table_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osquery/table_plugin.py b/osquery/table_plugin.py index 79b3d16..9046aa6 100644 --- a/osquery/table_plugin.py +++ b/osquery/table_plugin.py @@ -39,7 +39,7 @@ def call(self, context): if context["action"] == "generate": ctx = {} if "context" in context: - ctx = json.dumps(context["context"]) + ctx = json.loads(context["context"]) rows = self.generate(ctx) for i, row in enumerate(rows): for key, value in row.items():