Skip to content

Commit

Permalink
fix(vm): sync labels and annos with empty value (#322)
Browse files Browse the repository at this point in the history
sync labels and annos with empty value

Signed-off-by: yaroslavborbat <yaroslav.752@gmail.com>
  • Loading branch information
yaroslavborbat authored Aug 30, 2024
1 parent cf71a98 commit 0353618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/virtualization-artifact/pkg/common/merger.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func ApplyMapChanges(target, prev, cur map[string]string) (map[string]string, bo
var isChanged bool

for key, value := range cur {
if target[key] != value {
if val, ok := target[key]; !ok || val != value {
target[key] = value
isChanged = true
}
Expand Down

0 comments on commit 0353618

Please sign in to comment.