Skip to content
Snippets Groups Projects
Commit 823a934b authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5681 small fixes

parent 3183b07a
No related branches found
No related tags found
No related merge requests found
......@@ -29,11 +29,11 @@ public class OzgCloudCommandStatus extends StringBasedValue {
public static OzgCloudCommandStatus from(String statusString) {
return ALL_STATES.stream()
.filter(status -> StringUtils.equals(statusString, status.toString())).findAny()
.orElseGet(() -> unkownStatus(statusString));
.orElseGet(() -> unknownStatus(statusString));
}
private static OzgCloudCommandStatus unkownStatus(String statusString) {
LOG.warn("Unkown status string given: " + statusString);
private static OzgCloudCommandStatus unknownStatus(String statusString) {
LOG.warn("Unknown status string given: {}", statusString);
var newStatus = new OzgCloudCommandStatus(statusString);
ALL_STATES.add(newStatus);
return newStatus;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment