Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed May 5, 2020
1 parent f3f1d6e commit e339037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomad/structs/csi.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ func (p *CSIPlugin) AddPlugin(nodeID string, info *CSIInfo) error {
// client, they also conflict on the client so this should be
// ok
p.Controllers[nodeID] = info
if prev != nil || prev == nil && info.Healthy {
if prev != nil || info.Healthy {
p.Controllers[nodeID] = info
}
if info.Healthy {
Expand All @@ -737,7 +737,7 @@ func (p *CSIPlugin) AddPlugin(nodeID string, info *CSIInfo) error {
p.NodesHealthy -= 1
}
}
if prev != nil || prev == nil && info.Healthy {
if prev != nil || info.Healthy {
p.Nodes[nodeID] = info
}
if info.Healthy {
Expand Down

0 comments on commit e339037

Please sign in to comment.