Unable to use env variable with multiple hosts, for ES hosts output

Hi,

for info, I had the same prob and solved it with help of this post:

in short its to do with quotes around the environment variable. In my case I was using docker compose to pass in the environment variable and it seems the initial " character was being passed right through and then being considered part of the URL. Take away the quotes around the list of servers in my docker compose file and it all works. Suspect similar behaviour happening in with other docker / k8s descriptors