From 44bc51660917251a1d05e9dbf8124839e6ea00d3 Mon Sep 17 00:00:00 2001 From: "Boris Stoyanov - a.k.a Bobby" Date: Thu, 29 Nov 2018 18:50:51 +0200 Subject: [PATCH] api: move ostypeid from DB id to DB uuid, backports #2528 (#3066) This is a backport to 4.11 of #2528 --- .../org/apache/cloudstack/api/response/UserVmResponse.java | 6 +++--- server/src/com/cloud/api/query/dao/UserVmJoinDaoImpl.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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