Skip to content

Commit 1a185e5

Browse files
Update tests/fixture/bootstrapmonitor/bootstrap_test_config.go
Co-authored-by: Stephen Buttolph <[email protected]> Signed-off-by: marun <[email protected]>
1 parent c0809ba commit 1a185e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fixture/bootstrapmonitor/bootstrap_test_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func bootstrapTestConfigForPod(pod *corev1.Pod, nodeContainerName string) (*Boot
9696
// Attempt to retrieve the image versions from a pod annotation. The annotation may not be populated in
9797
// the case of a newly-created bootstrap test using an image tagged `latest` that hasn't yet had a
9898
// chance to discover the versions.
99-
if versionsAnnotation, ok := pod.Annotations[VersionsAnnotationKey]; ok && len(versionsAnnotation) > 0 {
99+
if versionsAnnotation := pod.Annotations[VersionsAnnotationKey]; len(versionsAnnotation) > 0 {
100100
testConfig.Versions = &version.Versions{}
101101
if err := json.Unmarshal([]byte(versionsAnnotation), testConfig.Versions); err != nil {
102102
return nil, fmt.Errorf("%w: %w", errFailedToUnmarshalAnnoation, err)

0 commit comments

Comments
 (0)