create instance tips fix && min_ram fix

This commit is contained in:
TangBin
2019-03-04 18:00:04 +08:00
parent 441afb84a8
commit 12c1bfb1d6
15 changed files with 51 additions and 18 deletions
+4
View File
@@ -52,6 +52,10 @@ type SImage struct {
visibility string
}
func (image *SImage) GetMinRamSizeMb() int {
return image.MinRAM
}
func (region *SRegion) GetImages(name string, status string, imageIds []string) ([]SImage, error) {
params := url.Values{}
if utils.IsInStringArray(status, []string{QUEUED, SAVING, ACTIVE, KILLED, DELETED, PENDING_DELETE, DEACTIVATED, UPLOADING, IMPORTING}) {