Skip to content

Commit 42bcf26

Browse files
committed
return nil on having no annotations
1 parent 65251e6 commit 42bcf26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/conversion/mapi2capi/util.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ func convertMAPIAnnotationsToCAPI(mapiAnnotations map[string]string) map[string]
9494
capiAnnotations[k] = v
9595
}
9696

97+
if len(capiAnnotations) == 0 {
98+
return nil
99+
}
100+
97101
return capiAnnotations
98102
}
99103

0 commit comments

Comments
 (0)