Skip to content

Commit

Permalink
nomad/state/state_store: restore provider & version
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin committed Aug 22, 2020
1 parent 01d6d1e commit 4ed3f86
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nomad/state/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -1050,10 +1050,14 @@ func upsertNodeCSIPlugins(txn *memdb.Txn, node *structs.Node, index uint64) erro
return nil
}
plug = structs.NewCSIPlugin(info.PluginID, index)
plug.Provider = info.Provider
plug.Version = info.ProviderVersion
}

// the plugin may have been created by the job being updated, in which case
// this data will not be configured, it's only available to the fingerprint
// system
plug.Provider = info.Provider
plug.Version = info.ProviderVersion

err = plug.AddPlugin(node.ID, info)
if err != nil {
return err
Expand Down

0 comments on commit 4ed3f86

Please sign in to comment.