Skip to content

Commit 30531f4

Browse files
Fix test
Signed-off-by: Ilya Dmitrichenko <[email protected]>
1 parent df1734a commit 30531f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/ocirepository_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ func (r *OCIRepositoryReconciler) reconcileSource(ctx context.Context, sp *patch
408408
// Mark observations about the revision on the object
409409
defer func() {
410410
if !obj.GetArtifact().HasRevision(revision) {
411-
message := fmt.Sprintf("new revision '%s' for '%s'", revision, ref)
411+
message := fmt.Sprintf("new revision '%s' for '%s'", revision, obj.Spec.URL)
412412
if obj.GetArtifact() != nil {
413413
conditions.MarkTrue(obj, sourcev1.ArtifactOutdatedCondition, "NewRevision", message)
414414
}

0 commit comments

Comments
 (0)