db: modelbase: BatchCreateValidateCreateData: return orig data

This commit is contained in:
Yousong Zhou
2020-11-26 21:18:57 +08:00
parent 805002005f
commit 89361aee27
+1 -1
View File
@@ -418,7 +418,7 @@ func (manager *SModelBaseManager) BatchPreValidate(
}
func (manager *SModelBaseManager) BatchCreateValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error) {
return nil, nil
return data, nil
}
func (manager *SModelBaseManager) OnCreateFailed(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject) error {