arnisoph / saltstack-elasticsearch-formula

Salt Stack Formula to set up and configure Elasticsearch, a distributed restful search and analytics server
Other
21 stars 17 forks source link

Fix doubled backslash in ES config #5

Closed tmandry closed 9 years ago

tmandry commented 9 years ago

Had this problem when trying to use a regex for http.cors.allow-origin. It would turn something like /https?:\/\/localhost(:[0-9]+)?/ into /https?:\\/\\/localhost(:[0-9]+)?/ in the config (not the doubled backslashes), so it was impossible to do this.

This is a hacky way to fix this problem, but the only one I know of right now. See this issue for discussion: https://github.com/saltstack/salt/issues/6435

arnisoph commented 9 years ago

Thanks!