mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
nomad/state/state_store: handle type conversion failure explicitly (#8660)
This commit is contained in:
@@ -1099,7 +1099,11 @@ func upsertNodeCSIPlugins(txn *memdb.Txn, node *structs.Node, index uint64) erro
|
||||
if raw == nil {
|
||||
break
|
||||
}
|
||||
plug := raw.(*structs.CSIPlugin).Copy()
|
||||
plug, ok := raw.(*structs.CSIPlugin)
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
plug = plug.Copy()
|
||||
|
||||
var hadDelete bool
|
||||
if _, ok := inUseController[plug.ID]; !ok {
|
||||
|
||||
Reference in New Issue
Block a user