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:
郑雨
2019-11-06 13:14:10 +08:00
parent 29502b9e58
commit da831eaf87
9 changed files with 33 additions and 12 deletions
+2 -2
View File
@@ -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 {