mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
fixing warning on comparisons
This commit is contained in:
+2
-2
@@ -279,9 +279,9 @@ def generate_workbench_panels(response_tasks, stories, TEMPLATE_PATH, OUTPUT_PAT
|
||||
template = j2_env.get_template('panel.j2')
|
||||
file_path = "default/data/ui/panels/workbench_panel_" + response_file_name + ".xml"
|
||||
output_path = path.join(OUTPUT_PATH, file_path)
|
||||
if response_task['search'].find(">") is not -1:
|
||||
if response_task['search'].find(">") != -1:
|
||||
response_task['search']= response_task['search'].replace(">",">")
|
||||
if response_task['search'].find("<") is not -1:
|
||||
if response_task['search'].find("<") != -1:
|
||||
response_task['search']= response_task['search'].replace("<","<")
|
||||
|
||||
output = template.render(search=response_task['search'])
|
||||
|
||||
Reference in New Issue
Block a user