fix(glance): make image is_standard updatable

This commit is contained in:
Zexi Li
2021-05-18 16:43:32 +08:00
parent 4cb42acc76
commit 31c1cbd4f7
+1 -1
View File
@@ -132,7 +132,7 @@ type SImage struct {
// 是否有删除保护
Protected tristate.TriState `nullable:"false" default:"true" list:"user" get:"user" create:"optional" update:"user"`
// 是否是标准镜像
IsStandard tristate.TriState `nullable:"false" default:"false" list:"user" get:"user" create:"admin_optional"`
IsStandard tristate.TriState `nullable:"false" default:"false" list:"user" get:"user" create:"admin_optional" update:"user"`
// 是否是主机镜像
IsGuestImage tristate.TriState `nullable:"false" default:"false" create:"optional" list:"user"`
// 是否是数据盘镜像