Skip to content

Commit

Permalink
pulp: get distribution url for system update
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Holloway <[email protected]>
  • Loading branch information
loadtheaccumulator committed Feb 5, 2025
1 parent ddbcca4 commit 4e658d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/services/repobuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,11 @@ func (rb *RepoBuilder) BuildUpdateRepo(ctx context.Context, id uint) (*models.Up
if err != nil {
return nil, err
}
update.Repo.URL = updateCommit.Repo.ContentURL(ctx)
update.Repo.URL = updateCommit.Repo.DistributionURL(ctx)
rb.log.WithField("update_transaction", update).Info("UPGRADE: point update to commit repo")
}

rb.log.WithField("repo", update.Repo.ContentURL(ctx)).Info("Update repo URL")
rb.log.WithField("repo", update.Repo.DistributionURL(ctx)).Info("Update repo URL")
update.Repo.Status = models.RepoStatusSuccess
if err := db.DB.Omit("Devices.*").Save(&update).Error; err != nil {
return nil, err
Expand Down

0 comments on commit 4e658d9

Please sign in to comment.