Skip to content

Commit

Permalink
Fix external module trying to request outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
entigo-mart-erlenheim committed Mar 10, 2025
1 parent bcfe2c4 commit 17aba43
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: eu-north-1
PROJECT_ID: entigo-infralib-agent
LOCATION: europe-north1
LOCATION: europe-west1
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
ZONE: europe-north1-a
ZONE: europe-west1-a
run: |
mkdir -p $(echo ~)/.config/gcloud
echo ${GOOGLE_CREDENTIALS} > $(echo ~)/.config/gcloud/application_default_credentials.json
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: eu-north-1
PROJECT_ID: entigo-infralib-agent
LOCATION: europe-north1
LOCATION: europe-west1
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
ZONE: europe-north1-a
ZONE: europe-west1-a
run: |
mkdir -p $(echo ~)/.config/gcloud
echo ${GOOGLE_CREDENTIALS} > $(echo ~)/.config/gcloud/application_default_credentials.json
Expand Down
3 changes: 3 additions & 0 deletions terraform/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ func addInputs(inputs map[string]interface{}, moduleBody *hclwrite.Body) {
}

func (t *terraform) addOutputs(body *hclwrite.Body, stepType model.StepType, module model.Module, sourceURL, release string) error {
if util.IsClientModule(module) {
return nil
}
moduleSource := module.Source
if stepType == model.StepTypeArgoCD {
moduleSource = fmt.Sprintf("k8s/%s", module.Source)
Expand Down

0 comments on commit 17aba43

Please sign in to comment.