Skip to content

Commit 0946d56

Browse files
committed
Issue #285
1 parent 8a5220b commit 0946d56

File tree

1 file changed

+6
-0
lines changed
  • core/src/main/java/org/openstack4j/model/compute

1 file changed

+6
-0
lines changed

core/src/main/java/org/openstack4j/model/compute/Server.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.openstack4j.model.common.Link;
99

1010
import com.fasterxml.jackson.annotation.JsonCreator;
11+
import com.fasterxml.jackson.annotation.JsonValue;
1112

1213
/**
1314
* A server is a virtual machine instance on a compute based system.
@@ -75,6 +76,11 @@ public static Status forValue(String value) {
7576
}
7677
return Status.UNRECOGNIZED;
7778
}
79+
80+
@JsonValue
81+
public String value() {
82+
return name().toLowerCase();
83+
}
7884
}
7985

8086
enum DiskConfig {

0 commit comments

Comments
 (0)