Skip to content

Commit 8fe13f9

Browse files
authored
OSType response: isuserdefined as string not bool #8127 (#8128)
Co-authored-by: Aakash Sinha <mailtomeaakash@gmail.com>
1 parent 39d6c20 commit 8fe13f9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

api/src/main/java/org/apache/cloudstack/api/response/GuestOSResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class GuestOSResponse extends BaseResponse {
5353

5454
@SerializedName(ApiConstants.IS_USER_DEFINED)
5555
@Param(description = "is the guest OS user defined")
56-
private String isUserDefined;
56+
private Boolean isUserDefined;
5757

5858
@SerializedName(ApiConstants.FOR_DISPLAY)
5959
@Param(description = "is the guest OS visible for the users")
@@ -99,11 +99,11 @@ public void setDescription(String description) {
9999
this.description = description;
100100
}
101101

102-
public String getIsUserDefined() {
102+
public Boolean getIsUserDefined() {
103103
return isUserDefined;
104104
}
105105

106-
public void setIsUserDefined(String isUserDefined) {
106+
public void setIsUserDefined(Boolean isUserDefined) {
107107
this.isUserDefined = isUserDefined;
108108
}
109109

server/src/main/java/com/cloud/api/ApiResponseHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3730,7 +3730,7 @@ public GuestOSResponse createGuestOSResponse(GuestOS guestOS) {
37303730
response.setName(guestOS.getDisplayName());
37313731
response.setDescription(guestOS.getDisplayName());
37323732
response.setId(guestOS.getUuid());
3733-
response.setIsUserDefined(String.valueOf(guestOS.getIsUserDefined()));
3733+
response.setIsUserDefined(guestOS.getIsUserDefined());
37343734
response.setForDisplay(guestOS.getForDisplay());
37353735
GuestOSCategoryVO category = ApiDBUtils.findGuestOsCategoryById(guestOS.getCategoryId());
37363736
if (category != null) {

0 commit comments

Comments
 (0)