nomad/structs: fix diff
This commit is contained in:
parent
f4ccb360ef
commit
61d3c3b480
|
@ -1647,7 +1647,7 @@ func volumeCSIMountOptionsDiff(oldMO, newMO *CSIMountOptions, contextual bool) *
|
||||||
oldMO = &CSIMountOptions{}
|
oldMO = &CSIMountOptions{}
|
||||||
diff.Type = DiffTypeAdded
|
diff.Type = DiffTypeAdded
|
||||||
newPrimitiveFlat = flatmap.Flatten(newMO, nil, true)
|
newPrimitiveFlat = flatmap.Flatten(newMO, nil, true)
|
||||||
} else if oldMO == nil && newMO != nil {
|
} else if oldMO != nil && newMO == nil {
|
||||||
newMO = &CSIMountOptions{}
|
newMO = &CSIMountOptions{}
|
||||||
diff.Type = DiffTypeDeleted
|
diff.Type = DiffTypeDeleted
|
||||||
oldPrimitiveFlat = flatmap.Flatten(oldMO, nil, true)
|
oldPrimitiveFlat = flatmap.Flatten(oldMO, nil, true)
|
||||||
|
|
Loading…
Reference in New Issue