diff --git a/pkg/compute/models/dynamicschedtags.go b/pkg/compute/models/dynamicschedtags.go index 1d249acf34..276206ef83 100644 --- a/pkg/compute/models/dynamicschedtags.go +++ b/pkg/compute/models/dynamicschedtags.go @@ -105,7 +105,7 @@ type SDynamicschedtag struct { // 动态调度标间的匹配条件 // example: host.sys_load > 1.5 || host.mem_used_percent > 0.7 => "high_load" - Condition string `width:"256" charset:"ascii" nullable:"false" list:"user" create:"required" update:"admin"` + Condition string `width:"1024" charset:"ascii" nullable:"false" list:"user" create:"required" update:"admin"` // 动态调度标签对应的调度标签 // SchedtagId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required" update:"admin"` diff --git a/pkg/compute/models/schedpolicies.go b/pkg/compute/models/schedpolicies.go index 5e5cecc13e..76adde71cf 100644 --- a/pkg/compute/models/schedpolicies.go +++ b/pkg/compute/models/schedpolicies.go @@ -58,7 +58,7 @@ type SSchedpolicy struct { db.SStandaloneResourceBase SSchedtagResourceBase - Condition string `width:"256" charset:"ascii" nullable:"false" list:"user" create:"required" update:"user"` + Condition string `width:"1024" charset:"ascii" nullable:"false" list:"user" create:"required" update:"user"` Strategy string `width:"32" charset:"ascii" nullable:"false" list:"user" create:"required" update:"user"` Enabled tristate.TriState `nullable:"false" default:"true" create:"optional" list:"user" update:"user"`