diff --git a/pkg/cloudcommon/db/db_dispatcher.go b/pkg/cloudcommon/db/db_dispatcher.go index 8f39a7e128..f99a5c815c 100644 --- a/pkg/cloudcommon/db/db_dispatcher.go +++ b/pkg/cloudcommon/db/db_dispatcher.go @@ -670,15 +670,16 @@ func getModelExtraDetails(item IModel, ctx context.Context, extra *jsonutils.JSO err := item.ValidateDeleteCondition(ctx) if err != nil { extra.Add(jsonutils.JSONFalse, "can_delete") + extra.Add(jsonutils.NewString(err.Error()), "delete_fail_reason") } else { extra.Add(jsonutils.JSONTrue, "can_delete") } - err = item.ValidateUpdateCondition(ctx) + /* err = item.ValidateUpdateCondition(ctx) if err != nil { extra.Add(jsonutils.JSONFalse, "can_update") } else { extra.Add(jsonutils.JSONTrue, "can_update") - } + }*/ return extra }