Skip to content

Commit

Permalink
Remove try/catch for IOException on exporting env
Browse files Browse the repository at this point in the history
  • Loading branch information
MattLud committed Oct 24, 2017
1 parent 0e40d82 commit f77c947
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ private void setupEnvironmentVariable(EnvVars vars, ExecWatch watch) throws IOEx
for (Map.Entry<String, String> entry : vars.entrySet()) {
//Check that key is bash compliant.
if (entry.getKey().matches("[a-zA-Z_][a-zA-Z0-9_]*")) {
try{
watch.getInput().write(
String.format(
"export %s='%s'%s",
Expand All @@ -278,13 +277,7 @@ private void setupEnvironmentVariable(EnvVars vars, ExecWatch watch) throws IOEx
).getBytes(StandardCharsets.UTF_8)
);
}

catch (IOException io)
{
LOGGER.info(String.format("Error: %s exporting %s - %s", io.getMessage() ,entry.getKey(), entry.getValue()));
}
}
}
}

private void waitUntilContainerIsReady() throws IOException {
Expand Down

0 comments on commit f77c947

Please sign in to comment.