修正: schedpolicies 加入的标签没有传入 params,导致动态标签不生效

This commit is contained in:
Zexi Li
2019-03-22 12:12:11 +08:00
parent 1264320ba1
commit e5b5a33c1e
+1
View File
@@ -209,6 +209,7 @@ func ApplySchedPolicies(params *jsonutils.JSONDict) *jsonutils.JSONDict {
newSchedtags := jsonutils.Marshal(schedtags)
log.Infof("updated sched tag %s", newSchedtags)
params.Set("aggregate_strategy", newSchedtags)
ret := jsonutils.NewDict()
ret.Add(newSchedtags, "aggregate_strategy")