Skip to content

Commit

Permalink
send "deafult" for empty projects in event-reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ATGardner committed Feb 1, 2024
1 parent cbaaa0e commit e20c52a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion event_reporter/reporter/application_event_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,11 +523,12 @@ func getOperationRevision(a *appv1.Application) string {
}

func (s *applicationEventReporter) getApplicationRevisionDetails(ctx context.Context, a *appv1.Application, revision string) (*appv1.RevisionMetadata, error) {
project := a.Spec.GetProject()
return s.applicationServiceClient.RevisionMetadata(ctx, &application.RevisionMetadataQuery{
Name: &a.Name,
AppNamespace: &a.Namespace,
Revision: &revision,
Project: &a.Spec.Project,
Project: &project,
})
}

Expand Down

0 comments on commit e20c52a

Please sign in to comment.