fix: 支持创建时指定多个安全组

This commit is contained in:
Qu Xuan
2019-11-12 19:55:16 +08:00
parent c06537ed0f
commit d4e168e72c
6 changed files with 47 additions and 1 deletions
+1
View File
@@ -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
}