Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOUDSTACK-9644] Adding missing bits field to TemplateResponse #1622

Merged
merged 1 commit into from Dec 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -169,6 +169,10 @@ public class TemplateResponse extends BaseResponseWithTagInformation implements
@Param(description = "additional key/value details tied with template")
private Map details;

@SerializedName(ApiConstants.BITS)
@Param(description="the processor bit size", since = "4.10")
private int bits;

@SerializedName(ApiConstants.SSHKEY_ENABLED)
@Param(description = "true if template is sshkey enabled, false otherwise")
private Boolean sshKeyEnabled;
Expand Down Expand Up @@ -347,4 +351,7 @@ public String getZoneId() {
return zoneId;
}

public void setBits(int bits) {
this.bits = bits;
}
}
Expand Up @@ -284,6 +284,7 @@ public TemplateResponse newIsoResponse(TemplateJoinVO iso) {

isoResponse.setOsTypeId(iso.getGuestOSUuid());
isoResponse.setOsTypeName(iso.getGuestOSName());
isoResponse.setBits(iso.getBits());

// populate owner.
ApiResponseHelper.populateOwner(isoResponse, iso);
Expand Down