mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: add tag for databricks vm
This commit is contained in:
@@ -113,6 +113,14 @@ func (manager *SVirtualResourceBaseManager) FilterByHiddenSystemAttributes(q *sq
|
||||
return q
|
||||
}
|
||||
|
||||
func (model *SVirtualResourceBase) SetSystemInfo(isSystem bool) error {
|
||||
_, err := Update(model, func() error {
|
||||
model.IsSystem = isSystem
|
||||
return nil
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
func (model *SVirtualResourceBase) SetProjectInfo(ctx context.Context, userCred mcclient.TokenCredential, projectId, domainId string) error {
|
||||
_, err := Update(model, func() error {
|
||||
model.ProjectId = projectId
|
||||
|
||||
Reference in New Issue
Block a user