mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
Image添加description字段
This commit is contained in:
@@ -205,8 +205,9 @@ func init() {
|
||||
})
|
||||
|
||||
type ImageUpdateOptions struct {
|
||||
ID string `help:"ID or Name of Image"`
|
||||
Name string `help:"New name of the image"`
|
||||
ID string `help:"ID or Name of Image"`
|
||||
Name string `help:"New name of the image"`
|
||||
Description string `help:"Description of image"`
|
||||
ImageOptionalOptions
|
||||
}
|
||||
|
||||
@@ -227,6 +228,9 @@ func init() {
|
||||
if len(args.Name) > 0 {
|
||||
params.Add(jsonutils.NewString(args.Name), "name")
|
||||
}
|
||||
if len(args.Description) > 0 {
|
||||
params.Add(jsonutils.NewString(args.Description), "description")
|
||||
}
|
||||
err := addImageOptionalOptions(s, params, args.ImageOptionalOptions)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -560,7 +560,7 @@ func init() {
|
||||
"OS_Distribution", "OS_version",
|
||||
"Min_disk", "Min_ram", "Status",
|
||||
"Notes", "OS_arch", "Preference",
|
||||
"OS_Codename", "Parent_id"},
|
||||
"OS_Codename", "Parent_id", "Description"},
|
||||
[]string{"Owner", "Owner_name"})}
|
||||
register(&Images)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user