mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: Add operational restrictions and fix some bugs for guest image
1. Support generate_name for guest image 2. Only allow subimage of guest image to update description 3. Add support for creating vm from guest image in fetchDiskInfo(disk.go) 4. Fix the bug vm can't start automatically after build guest image 5. Fix the bug that project of guest image is incorrect 6. Fix the bug about updating guest image
This commit is contained in:
@@ -556,9 +556,9 @@ func init() {
|
||||
return nil
|
||||
})
|
||||
|
||||
R(&options.ServerSaveImageOptions{}, "server-save-guest-image",
|
||||
R(&options.ServerSaveGuestImageOptions{}, "server-save-guest-image",
|
||||
"save root disk and data disks to new images and upload to glance.", func(s *mcclient.ClientSession,
|
||||
opts *options.ServerSaveImageOptions) error {
|
||||
opts *options.ServerSaveGuestImageOptions) error {
|
||||
|
||||
params, err := options.StructToParams(opts)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user