Merge pull request #62 from mmitche/fix-join
Using StringUtils.join (String.join not available in JDK 7)
This commit is contained in:
commit
f2624e3603
|
@ -32,6 +32,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
import java.util.logging.Level;
|
||||
import jenkins.model.Jenkins;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
/**
|
||||
* Performs a few types of verification:
|
||||
|
@ -167,7 +168,7 @@ public final class AzureVMCloudVerificationTask extends AsyncPeriodicWork {
|
|||
agentTemplate.setTemplateStatusDetails("");
|
||||
}
|
||||
else {
|
||||
String details = String.join("\n", errors);
|
||||
String details = StringUtils.join(errors, "\n");
|
||||
LOGGER.log(Level.INFO, "AzureVMCloudVerificationTask: execute: {0} could not be verified:\n{1}",
|
||||
new Object [] { templateName, details });
|
||||
// Set the status details to the set of messages
|
||||
|
|
Loading…
Reference in New Issue