mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
fix: 支持创建时指定多个安全组
This commit is contained in:
@@ -401,6 +401,7 @@ func FetchServerCreateInputByJSON(obj jsonutils.JSONObject) (*compute.ServerCrea
|
||||
if secgroup := jsonutils.GetAnyString(obj, []string{"secgroup", "secgroup_id", "secgrp_id"}); len(secgroup) != 0 {
|
||||
input.SecgroupId = secgroup
|
||||
}
|
||||
input.Secgroups, _ = jsonutils.GetStringArray(obj, "secgroups")
|
||||
|
||||
return input, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user