Hi,
I have a saltstack (Carbon version) setup with Windows minions. I am trying to get the binary path of a service and this is how my state file looks:
# cat test.sls
run_command:
module.run:
- name: test.echo
- text: "{{ test_var['BinaryPath'] }}"
WhenI execute it I am getting an error saying found unknown escape character 'W'; line 6
It considers \Windows as an escape chaaracter.
# salt -t 60 '192.168.133.129' state.apply test
Data failed to compile:
----------
Rendering SLS 'base:test' failed: found unknown escape character 'W'; line 6
---
run_command:
module.run:
- name: test.echo
- text: "C:\Windows\system32\svchost.exe -k SDRSVC" <======================
---
Any suggestions on how to fix this?
BR,
Varun