Oh... you are totally right.. I forgot about Array#join ...
Thanks for pointing this out! I was able to replace my array_to_string function call with calls to join("\n"). Much better
So what's left now are just some function calls (by_ssh_command, logfile_tag). Can this be handled with director?
The only remotely related thing I was able to find was: https://github.com/Icinga/icin…dule-director/issues/1168
Thanks for your help!