-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Multi-Arch] Select Template Arch when creating template from volume #11068
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
Changes from 2 commits
07be7dd
340e953
41144c8
017296a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -20,6 +20,7 @@ | |||||
| import java.util.List; | ||||||
| import java.util.Map; | ||||||
|
|
||||||
| import com.cloud.cpu.CPU; | ||||||
| import org.apache.cloudstack.acl.SecurityChecker; | ||||||
| import org.apache.cloudstack.api.APICommand; | ||||||
| import org.apache.cloudstack.api.ApiCommandResourceType; | ||||||
|
|
@@ -148,6 +149,11 @@ | |||||
| since = "4.19.0") | ||||||
| private String accountName; | ||||||
|
|
||||||
| @Parameter(name = ApiConstants.ARCH, type = CommandType.STRING, | ||||||
| description = "the CPU arch of the template. Valid options are: x86_64, aarch64", | ||||||
| since = "4.20.2") | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
if this is part of 4.21
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it is based off of 4.20 @sureshanaparti , I think it is good like this.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DaanHoogland is it ok if it goes in 4.21 first (before 4.20.2)?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if both versions are to use the same template (which it looks like ti is going to be). |
||||||
| private String arch; | ||||||
|
|
||||||
| // /////////////////////////////////////////////////// | ||||||
| // ///////////////// Accessors /////////////////////// | ||||||
| // /////////////////////////////////////////////////// | ||||||
|
|
@@ -234,6 +240,10 @@ | |||||
| return accountName; | ||||||
| } | ||||||
|
|
||||||
| public CPU.CPUArch getArch() { | ||||||
| return CPU.CPUArch.fromType(arch); | ||||||
vishesh92 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| } | ||||||
|
Check warning on line 245 in api/src/main/java/org/apache/cloudstack/api/command/user/template/CreateTemplateCmd.java
|
||||||
|
|
||||||
| // /////////////////////////////////////////////////// | ||||||
| // ///////////// API Implementation/////////////////// | ||||||
| // /////////////////////////////////////////////////// | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.