Skip to content

Commit

Permalink
fix(deployment): use Config instead of ConfigBackoff when fetching de…
Browse files Browse the repository at this point in the history
…ploy config (#1239)
  • Loading branch information
ecrupper authored Jan 10, 2025
1 parent 7d74bfc commit fb2f8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/deployment/get_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func getDeploymentConfig(c *gin.Context, l *logrus.Entry, u *types.User, r *type
if errors.Is(err, gorm.ErrRecordNotFound) {
l.Debugf("pipeline %s not found in database, fetching from scm", entry)

config, err = scm.FromContext(c).ConfigBackoff(ctx, u, r, ref)
config, err = scm.FromContext(c).Config(ctx, u, r, ref)
if err != nil {
return yaml.Deployment{}, fmt.Errorf("unable to get pipeline configuration for %s: %w", entry, err)
}
Expand Down

0 comments on commit fb2f8cf

Please sign in to comment.