Alexander Belanger 4 лет назад
Родитель
Сommit
7fa6618c1b

+ 5 - 0
api/server/handlers/provision/provision_ecr.go

@@ -92,6 +92,11 @@ func (c *ProvisionECRHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
 
 	opts, err := GetSharedProvisionerOpts(c.Config(), infra)
 
+	if err != nil {
+		c.HandleAPIError(w, r, apierrors.NewErrInternal(err))
+		return
+	}
+
 	vaultToken := ""
 
 	if c.Config().CredentialBackend != nil {

+ 1 - 0
internal/repository/gorm/migrate.go

@@ -31,6 +31,7 @@ func AutoMigrate(db *gorm.DB) error {
 		&models.SubEvent{},
 		&models.ProjectUsage{},
 		&models.ProjectUsageCache{},
+		&models.CredentialsExchangeToken{},
 		&ints.KubeIntegration{},
 		&ints.BasicIntegration{},
 		&ints.OIDCIntegration{},