nomad/structs: fix diff

This commit is contained in:
Lars Lehtonen 2021-04-08 19:06:41 -07:00 committed by Tim Gross
parent f4ccb360ef
commit 61d3c3b480
1 changed files with 1 additions and 1 deletions

View File

@ -1647,7 +1647,7 @@ func volumeCSIMountOptionsDiff(oldMO, newMO *CSIMountOptions, contextual bool) *
oldMO = &CSIMountOptions{}
diff.Type = DiffTypeAdded
newPrimitiveFlat = flatmap.Flatten(newMO, nil, true)
} else if oldMO == nil && newMO != nil {
} else if oldMO != nil && newMO == nil {
newMO = &CSIMountOptions{}
diff.Type = DiffTypeDeleted
oldPrimitiveFlat = flatmap.Flatten(oldMO, nil, true)