Skip to content

Commit

Permalink
PMM-12448 Fix bug (#2437)
Browse files Browse the repository at this point in the history
PMM-12375 trigger the build
  • Loading branch information
artemgavrilov authored and Alex Tymchuk committed Sep 16, 2023
1 parent 8008009 commit 3e453b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion managed/services/preconditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ func CheckArtifactOverlapping(q *reform.Querier, serviceID, locationID, folder s
}

for _, artifact := range artifacts {
if artifact.ServiceID != serviceID {
// We skip artifacts made on services that are no longer exists in PMM. However, in future we can improve this function
// by storing required information right in artifact model.
if artifact.ServiceID != "" && artifact.ServiceID != serviceID {
svc, err := models.FindServiceByID(q, artifact.ServiceID)
if err != nil {
return err
Expand Down

0 comments on commit 3e453b1

Please sign in to comment.