From aecd4d4244b21f428d21146012673e3af9d1467d Mon Sep 17 00:00:00 2001 From: ecrupper Date: Fri, 10 Jan 2025 11:09:49 -0600 Subject: [PATCH] fix(deployment): use Config instead of ConfigBackoff when fetching deploy config --- api/deployment/get_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/deployment/get_config.go b/api/deployment/get_config.go index 987f7dced..8c03cafc0 100644 --- a/api/deployment/get_config.go +++ b/api/deployment/get_config.go @@ -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) }