mirror of https://github.com/apache/cloudstack.git
change allocationState of HostResponse to resourceState
This commit is contained in:
parent
6e303c10e3
commit
d343af96e5
|
|
@ -148,8 +148,8 @@ public class HostResponse extends BaseResponse {
|
|||
@SerializedName("suitableForMigration") @Param(description="true if this host is suitable(has enough capacity and satisfies all conditions like hosttags, max guests vm limit etc) to migrate a VM to it , false otherwise")
|
||||
private Boolean suitableForMigration;
|
||||
|
||||
@SerializedName("allocationstate") @Param(description="the allocation state of the host")
|
||||
private String allocationState;
|
||||
@SerializedName("resourceState") @Param(description="the resource state of the host")
|
||||
private String resourceState;
|
||||
|
||||
@SerializedName(ApiConstants.HYPERVISOR_VERSION) @Param(description="the hypervisor version")
|
||||
private String hypervisorVersion;
|
||||
|
|
@ -472,12 +472,12 @@ public class HostResponse extends BaseResponse {
|
|||
this.suitableForMigration = suitableForMigration;
|
||||
}
|
||||
|
||||
public String getAllocationState() {
|
||||
return allocationState;
|
||||
public String getResourceState() {
|
||||
return resourceState;
|
||||
}
|
||||
|
||||
public void setAllocationState(String allocationState) {
|
||||
this.allocationState = allocationState;
|
||||
public void setResourceState(String resourceState) {
|
||||
this.resourceState = resourceState;
|
||||
}
|
||||
|
||||
public String getCpuWithOverprovisioning() {
|
||||
|
|
|
|||
|
|
@ -639,7 +639,7 @@ public class ApiResponseHelper implements ResponseGenerator {
|
|||
}
|
||||
}
|
||||
|
||||
hostResponse.setAllocationState(host.getResourceState().toString());
|
||||
hostResponse.setResourceState(host.getResourceState().toString());
|
||||
|
||||
hostResponse.setObjectName("host");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue