fix: add tag for databricks vm

This commit is contained in:
Qu Xuan
2021-05-08 09:28:22 +08:00
parent 20327d53b3
commit 082d5a9d61
4 changed files with 30 additions and 5 deletions
+8
View File
@@ -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