This commit is contained in:
elaneri 2023-05-22 17:37:32 -05:00 committed by GitHub
commit f803e0aad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,10 +200,10 @@ public class FeatureUpdateController implements FeatureUpdateService.ServiceIfac
} }
private List<PenguinVersion> getPenguinVersions(String penguinVersionsStr) { private List<PenguinVersion> getPenguinVersions(String penguinVersionsStr) {
String[] tokens = penguinVersionsStr.split("\\s*,\\s*"); String[] tokens = penguinVersionsStr.split(",");
List<PenguinVersion> listOfPenguinVersions = Lists.newArrayListWithCapacity(tokens.length); List<PenguinVersion> listOfPenguinVersions = Lists.newArrayListWithCapacity(tokens.length);
for (String token : tokens) { for (String token : tokens) {
listOfPenguinVersions.add(PenguinVersion.valueOf(token.toUpperCase())); listOfPenguinVersions.add(PenguinVersion.valueOf(token.trim().toUpperCase()));
} }
LOG.info(String.format("Using Penguin Versions: %s", listOfPenguinVersions)); LOG.info(String.format("Using Penguin Versions: %s", listOfPenguinVersions));
return listOfPenguinVersions; return listOfPenguinVersions;