Skip to content

Commit

Permalink
Merge pull request #458 from DrDroidLab/fix_log_conditions
Browse files Browse the repository at this point in the history
Fixes bug in log result evaluator
  • Loading branch information
dimittal authored Aug 13, 2024
2 parents 7e60af5 + a1f7d5f commit 5c4985f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class LogsResultEvaluator(TaskResultEvaluator):
def evaluate(self, rule: PlaybookTaskResultRule, task_result: PlaybookTaskResult) -> (bool, Dict):
if rule.type != PlaybookTaskResultType.LOGS or task_result.type != PlaybookTaskResultType.LOGS:
raise ValueError("Received unsupported rule and task types")
table_result = task_result.table
table_result = task_result.logs
table_result_rule: TableResultRule = rule.logs
rule_type = table_result_rule.type
operator = table_result_rule.operator
Expand Down

0 comments on commit 5c4985f

Please sign in to comment.