Describe the bug
When a workflow using keep.dictget('{{alert}}', 'some_field', 'unknown') function is run on the alert with description="Hello ('Hola') everyone. How are you all doing?", the workflow fails. Tried using double quotes around the dictget params but it didn't work.
To Reproduce
Steps to reproduce the behavior:
- Add an alert with the mentioned description
- Add a workflow with the following configuration
steps:
- name: console-step
provider:
type: console
config: "{{ providers.default-console }}"
with:
message: keep.dictget('{{alert}}', 'some_field', 'unknown')
- Execute the workflow on the inserted alert
Expected behavior
The workflow should run successfully.
Screenshots
Root cause:
The issue is originating from here: https://github.com/keephq/keep/blob/main/keep/iohandler/iohandler.py#L96
The substring ') is causing the issue because when it processes the quote, keep considers it as terminating character.
Describe the bug
When a workflow using
keep.dictget('{{alert}}', 'some_field', 'unknown')function is run on the alert withdescription="Hello ('Hola') everyone. How are you all doing?", the workflow fails. Tried using double quotes around the dictget params but it didn't work.To Reproduce
Steps to reproduce the behavior:
steps:
provider:
type: console
config: "{{ providers.default-console }}"
with:
message: keep.dictget('{{alert}}', 'some_field', 'unknown')
Expected behavior
The workflow should run successfully.
Screenshots
Root cause:
The issue is originating from here: https://github.com/keephq/keep/blob/main/keep/iohandler/iohandler.py#L96
The substring ') is causing the issue because when it processes the quote, keep considers it as terminating character.