From a50c704a6854fe006f2a1adc151c3e828ed44686 Mon Sep 17 00:00:00 2001 From: Guiheux Steven Date: Mon, 25 Apr 2022 12:13:54 +0200 Subject: [PATCH] fix(api): do not export encrypted placeholder (#6148) --- engine/api/workflow/workflow_exporter.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/api/workflow/workflow_exporter.go b/engine/api/workflow/workflow_exporter.go index 6143c8ed0c..def7f47926 100644 --- a/engine/api/workflow/workflow_exporter.go +++ b/engine/api/workflow/workflow_exporter.go @@ -80,6 +80,12 @@ func Pull(ctx context.Context, db gorp.SqlExecutor, cache cache.Store, proj sdk. } app.Keys = keys + deploymentStrategies, err := application.LoadDeploymentStrategies(ctx, db, app.ID, true) + if err != nil { + return wp, sdk.WrapError(err, "cannot load deployment strategies for application %s", app.Name) + } + app.DeploymentStrategies = deploymentStrategies + wf.Applications[i] = app }