From 84c43c6086644e19349306ce77889feff79cabf9 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Wed, 27 Nov 2019 14:07:27 +0800 Subject: [PATCH] fix caller parameters missing --- pkg/cloudcommon/db/caller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cloudcommon/db/caller.go b/pkg/cloudcommon/db/caller.go index 175ffdc2de..9e05e6e848 100644 --- a/pkg/cloudcommon/db/caller.go +++ b/pkg/cloudcommon/db/caller.go @@ -133,7 +133,7 @@ func ValueToError(out reflect.Value) error { } func ValidateCreateData(manager IModelManager, ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error) { - ret, err := call(manager, "ValidateCreateData", userCred, ownerId, query, data) + ret, err := call(manager, "ValidateCreateData", ctx, userCred, ownerId, query, data) if err != nil { return nil, httperrors.NewGeneralError(err) } @@ -176,7 +176,7 @@ func GetExtraDetails(model IModel, ctx context.Context, userCred mcclient.TokenC } func ValidateUpdateData(model IModel, ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error) { - ret, err := call(model, "ValidateUpdateData", userCred, query, data) + ret, err := call(model, "ValidateUpdateData", ctx, userCred, query, data) if err != nil { return nil, httperrors.NewGeneralError(err) } @@ -191,7 +191,7 @@ func ValidateUpdateData(model IModel, ctx context.Context, userCred mcclient.Tok } func CustomizeDelete(model IModel, ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error { - ret, err := call(model, "CustomizeDelete", userCred, query, data) + ret, err := call(model, "CustomizeDelete", ctx, userCred, query, data) if err != nil { return httperrors.NewGeneralError(err) }