Error seen when running state:
Rendering SLS '<repo:module.state>' failed: found unknown escape characterIf the above lists a particular line & character, pay attention to where this is.
Conditional logic may cause this to be encountered only for particular circumstances.
The Windows path separator \ is interpreted by Unix-style software such as Salt, as an escape sequence.
If Windows paths are given in the state files, enclose these in single quotes so that escape sequences are not processed.
Incorrect syntax:
This will cause \p, \t and \f to be interpreted as escape characters by Salt:
"C:\path\to\file"Corrected syntax:
'C:\path\to\file'It is also possible to double-up backslashes (\\), but this may be more prone to mistakes than single-quoting the whole path.
The YAML specification states that escape sequences are "only interpreted in double-quoted scalars":