diff --git a/motor/discovery/gitlab/gitlab.go b/motor/discovery/gitlab/gitlab.go index 49ef9ae4fe..5ffcd57dfe 100644 --- a/motor/discovery/gitlab/gitlab.go +++ b/motor/discovery/gitlab/gitlab.go @@ -170,17 +170,19 @@ func (r *Resolver) Resolve(ctx context.Context, root *asset.Asset, pCfg *provide if err == nil && len(terraformFiles) > 0 { terraformCfg := pCfg.Clone() terraformCfg.Backend = providers.ProviderType_TERRAFORM + // git+https://gitlab.com/mondoolabs/example-gitlab.git + terraformCfg.Options["path"] = "git" + "+" + project.HTTPURLToRepo assets, err := (&terraform_resolver.Resolver{}).Resolve(ctx, projectAsset, terraformCfg, credsResolver, sfn) if err == nil && len(assets) > 0 { for i := range assets { if len(assets[i].PlatformIds) > 0 { assets[i].PlatformIds[0] = assets[i].PlatformIds[0] + "/" + project.Name + list = append(list, assets[i]) } else { log.Debug().Msg("missing platform id for asset") continue } } - list = append(list, assets...) } } }