mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 09:51:16 -04:00
Backport Prevent panics when events are lacking PluginInfo, as with lease events. into ce/main (#14788)
This commit is contained in:
parent
4a6007742d
commit
f08bacf40e
2 changed files with 12 additions and 2 deletions
3
changelog/_14779.txt
Normal file
3
changelog/_14779.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
events (enterprise): Fix panic when replicating lease events.
|
||||
```
|
||||
|
|
@ -105,12 +105,19 @@ func (x *EventReceived) BexprDatum() any {
|
|||
}
|
||||
}
|
||||
|
||||
sourcePluginMount := ""
|
||||
isLocal := false
|
||||
if x.PluginInfo != nil {
|
||||
sourcePluginMount = x.PluginInfo.MountPath
|
||||
isLocal = x.PluginInfo.IsLocal
|
||||
}
|
||||
|
||||
return &EventReceivedBexpr{
|
||||
EventType: x.EventType,
|
||||
Operation: operation,
|
||||
SourcePluginMount: x.PluginInfo.MountPath,
|
||||
SourcePluginMount: sourcePluginMount,
|
||||
DataPath: dataPath,
|
||||
Namespace: x.Namespace,
|
||||
SourcePluginIsLocal: x.PluginInfo.IsLocal,
|
||||
SourcePluginIsLocal: isLocal,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue