Skip to content

Commit

Permalink
Merge pull request #6 from 3scale-ops/fix-panic
Browse files Browse the repository at this point in the history
Fix panic
  • Loading branch information
3scale-robot authored Oct 13, 2023
2 parents 62e4905 + 5ac43c5 commit acd6c57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion property/changeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ func (set *ChangeSet[T]) EnsureDesired(logger logr.Logger) bool {
}

logger.V(1).Info("differences detected", "path", set.path, "diff", cmp.Diff(set.current, set.desired))
*set.current = *set.desired
if set.desired == nil {
set.current = nil
} else {
*set.current = *set.desired
}

return true
}

Expand Down

0 comments on commit acd6c57

Please sign in to comment.