I have my database password starting with a '*'. When i put this on my production server i get following error:
- syntax error on line 17, col 25: ` password: *---------'.Exception class:ArgumentError.
Thanks, Anubhaw
Use quotes in YAML if your value includes special characters. For example, these special characters may require quotes: {, }, [, ], ,, &, :, *, #, ?, |. -, <. >, =, !, %, @, \. It is not necessary to use quotes when a single special character is surrounded by spaces, for example, * with spaces on both sides.
How do you escape quotes in YAML? In single quoted strings the single quote character can be escaped by prefixing it with another single quote, basically doubling it. Backslashes in single quoted strings do not need to be escaped.
The asterisk (*
) has special meaning in YAML. Try using a quoted scalar:
password: '*-------'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With