Resiliency-Studio
Resiliency-Studio copied to clipboard
line endings need to be changed for hardware script to run on Linux
I just wanted to leave this issue here for anyone that might run into the same problem. I am not sure if this is still maintained. I also can not submit a patch at the moment, but I wanted to document what needs to change in order to make sure the discover hardware script runs successfully on a Linux/Unix machine.
In resiliency-studio-service/src/main/java/com/att/tta/rs/util/AppUtil.java, about line 170:
Change:
String script = Resources.toString(url, Charsets.UTF_8);
to
String script = Resources.toString(url, Charsets.UTF_8).replaceAll("\\r", "");
Of course, there might be a better solution, but main point of this issue is to record this for others, if needed.