Skip to content

Instantly share code, notes, and snippets.

@zls
Created October 29, 2015 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zls/857f161dec40cbe2da3b to your computer and use it in GitHub Desktop.
Save zls/857f161dec40cbe2da3b to your computer and use it in GitHub Desktop.
{% set foo = "state" %}
test escape quote:
salt.function:
- tgt: 'minion1*'
- name: cmd.run
- arg:
- "echo \"The \\\"{{ foo }}\\\" is high\" > /tmp/test"
$ cat /tmp/test
The "state" is high
@zls
Copy link
Author

zls commented Oct 29, 2015

command being run is:

echo "The "state" is high" > /tmp/test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment