diff --git a/api/src/org/apache/cloudstack/api/response/UserVmResponse.java b/api/src/org/apache/cloudstack/api/response/UserVmResponse.java index 2ff1eaa717b..8db4f853243 100644 --- a/api/src/org/apache/cloudstack/api/response/UserVmResponse.java +++ b/api/src/org/apache/cloudstack/api/response/UserVmResponse.java @@ -284,7 +284,7 @@ public class UserVmResponse extends BaseResponseWithTagInformation implements Co @SerializedName(ApiConstants.OS_TYPE_ID) @Param(description = "OS type id of the vm", since = "4.4") - private Long osTypeId; + private String osTypeId; public UserVmResponse() { securityGroupList = new LinkedHashSet(); @@ -810,7 +810,7 @@ public class UserVmResponse extends BaseResponseWithTagInformation implements Co this.details = details; } - public void setOsTypeId(Long osTypeId) { + public void setOsTypeId(String osTypeId) { this.osTypeId = osTypeId; } @@ -834,7 +834,7 @@ public class UserVmResponse extends BaseResponseWithTagInformation implements Co isDynamicallyScalable = dynamicallyScalable; } - public Long getOsTypeId() { + public String getOsTypeId() { return osTypeId; } } diff --git a/server/src/com/cloud/api/query/dao/UserVmJoinDaoImpl.java b/server/src/com/cloud/api/query/dao/UserVmJoinDaoImpl.java index f0a0a56e3c6..00ec61ad846 100644 --- a/server/src/com/cloud/api/query/dao/UserVmJoinDaoImpl.java +++ b/server/src/com/cloud/api/query/dao/UserVmJoinDaoImpl.java @@ -196,7 +196,7 @@ public class UserVmJoinDaoImpl extends GenericDaoBaseWithTagInformation