Skip to content

Commit 1cea5fa

Browse files
committed
Fixed query parsing in sentinel query
1 parent 59233ce commit 1cea5fa

File tree

1 file changed

+2
-2
lines changed
  • azure-sentinel/1.0.0/src

1 file changed

+2
-2
lines changed

azure-sentinel/1.0.0/src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ def add_comment(self, **kwargs):
243243
return res.text
244244

245245
def run_query(self, **kwargs):
246-
247246
# Get a client credential access token
248247
auth = self.authenticate(
249248
kwargs["tenant_id"], kwargs["client_id"], kwargs["client_secret"]
250249
)
250+
251251
if not auth["success"]:
252252
return {"error": auth["message"]}
253253

@@ -268,7 +268,7 @@ def run_query(self, **kwargs):
268268
"properties": {
269269
"Category": kwargs["query_category"],
270270
"DisplayName": kwargs["query_name"],
271-
"Query": {kwargs['query']},
271+
"Query": kwargs['query'],
272272
}
273273
}
274274

0 commit comments

Comments
 (0)