@@ -95,7 +95,7 @@ func (b *Backend) pathConfigDelete(ctx context.Context, req *logical.Request, da
9595 }
9696
9797 if err = req .Storage .Delete (ctx , fmt .Sprintf ("%s/%s" , PathConfigStorage , name )); err == nil {
98- _ = event .Event (ctx , b .Backend , operationPrefixGitlabAccessTokens , "config-delete" , map [string ]string {
98+ _ = event .Event (ctx , b .Backend , "config-delete" , map [string ]string {
9999 "path" : fmt .Sprintf ("%s/%s" , PathConfigStorage , name ),
100100 })
101101 b .SetClient (nil , name )
@@ -150,7 +150,7 @@ func (b *Backend) pathConfigPatch(ctx context.Context, req *logical.Request, dat
150150 defer b .lockClientMutex .Unlock ()
151151 if err = saveConfig (ctx , config , req .Storage ); err == nil {
152152 lrd := config .LogicalResponseData (b .flags .ShowConfigToken )
153- _ = event .Event (ctx , b .Backend , operationPrefixGitlabAccessTokens , "config-patch" , changes )
153+ _ = event .Event (ctx , b .Backend , "config-patch" , changes )
154154 b .SetClient (nil , name )
155155 b .Logger ().Debug ("Patched config" , "lrd" , lrd , "warnings" , warnings )
156156 lResp = & logical.Response {Data : lrd , Warnings : warnings }
@@ -209,7 +209,7 @@ func (b *Backend) pathConfigWrite(ctx context.Context, req *logical.Request, dat
209209 var lResp * logical.Response
210210
211211 if err = saveConfig (ctx , config , req .Storage ); err == nil {
212- _ = event .Event (ctx , b .Backend , operationPrefixGitlabAccessTokens , "config-write" , map [string ]string {
212+ _ = event .Event (ctx , b .Backend , "config-write" , map [string ]string {
213213 "path" : fmt .Sprintf ("%s/%s" , PathConfigStorage , name ),
214214 "auto_rotate_token" : strconv .FormatBool (config .AutoRotateToken ),
215215 "auto_rotate_before" : config .AutoRotateBefore .String (),
0 commit comments