StackStorm/st2

Add 'shell_escape' Jinja filter

Open

#3.564 geöffnet am 11. Juli 2017

Auf GitHub ansehen
 (2 Kommentare) (4 Reaktionen) (1 zugewiesene Person)Python (740 Forks)batch import
complexity:easyfeaturegood first issue

Repository-Metriken

Stars
 (5.794 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Hello Team,

I have tried to use local shell command to print the long string contains special characters. However it failed with below error as the output contains non-standard characters. It would be good if we can add shell_escape Jinja filter: https://docs.stackstorm.com/reference/jinja.html#applying-filters-with-jinja to handle cases like that when "dangerous" string is passed to shell command.

Failure error: bash: line 10: ok:: command not found bash: line 12: TASK: command not found bash: line 13: {: Permission denied bash: line 14: msg:: command not found

Contributor Guide