summaryrefslogtreecommitdiffstats
path: root/nova-model/src/main/java/com
diff options
context:
space:
mode:
authorBenjamin, Max (mb388a) <mb388a@att.com>2020-04-06 09:43:28 -0400
committerBenjamin, Max (mb388a) <mb388a@att.com>2020-04-06 09:46:57 -0400
commit441ba467f510a6c58f2012f96305dbeef0eb535b (patch)
tree5d99d4ae8f7253c4f6b7510961cb247e2575fd61 /nova-model/src/main/java/com
parent492a7c0434170d29c2b45d81e0c96fc940b754d0 (diff)
power level should not be a string
openstack parsing is failing because this is actually an int Issue-ID: SO-2793 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: If3e210ccb03aeac0bb32dda4e78475548dc0ea26
Diffstat (limited to 'nova-model/src/main/java/com')
-rw-r--r--nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java b/nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java
index 90b2fe2..672a630 100644
--- a/nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java
+++ b/nova-model/src/main/java/com/woorea/openstack/nova/model/Server.java
@@ -204,7 +204,7 @@ public class Server implements Serializable {
private String taskState;
@JsonProperty("OS-EXT-STS:power_state")
- private String powerState;
+ private int powerState;
@JsonProperty("OS-EXT-STS:vm_state")
private String vmState;
@@ -407,7 +407,7 @@ public class Server implements Serializable {
/**
* @return the powerState
*/
- public String getPowerState() {
+ public int getPowerState() {
return powerState;
}